ci: remove container block, run directly on runner host
Some checks failed
Deploy / deploy (push) Failing after 1s

This commit is contained in:
Cosmo
2026-04-22 13:34:44 +00:00
parent b2ad005f44
commit 72b38c631e

View File

@@ -7,15 +7,10 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: self-hosted runs-on: self-hosted
container:
image: alpine:3.19
volumes:
- /opt/digital-home:/opt/digital-home
- /var/run/docker.sock:/var/run/docker.sock
steps: steps:
- name: Build and deploy - name: Build and deploy
run: | run: |
apk add --no-cache docker-cli git apk add --no-cache git || apt-get install -y git || true
cd /opt/digital-home/smart-home-tablet cd /opt/digital-home/smart-home-tablet
git config --global --add safe.directory /opt/digital-home/smart-home-tablet git config --global --add safe.directory /opt/digital-home/smart-home-tablet
git pull origin main git pull origin main
@@ -23,4 +18,4 @@ jobs:
docker stop tablet-yfh53kixpwkjlo4zibglx4n2 || true docker stop tablet-yfh53kixpwkjlo4zibglx4n2 || true
docker rm tablet-yfh53kixpwkjlo4zibglx4n2 || true docker rm tablet-yfh53kixpwkjlo4zibglx4n2 || true
docker run -d --name tablet-yfh53kixpwkjlo4zibglx4n2 --network coolify -p 3006:3000 --restart unless-stopped --label traefik.enable=true --label 'traefik.http.routers.tablet.rule=Host(`tablet.digital-home.site`)' --label traefik.http.routers.tablet.entrypoints=https --label traefik.http.routers.tablet.tls=true --label traefik.http.routers.tablet.tls.certresolver=letsencrypt --label traefik.http.services.tablet.loadbalancer.server.port=3000 --env-file /opt/digital-home/smart-home-tablet/.tablet.env smart-home-tablet:latest docker run -d --name tablet-yfh53kixpwkjlo4zibglx4n2 --network coolify -p 3006:3000 --restart unless-stopped --label traefik.enable=true --label 'traefik.http.routers.tablet.rule=Host(`tablet.digital-home.site`)' --label traefik.http.routers.tablet.entrypoints=https --label traefik.http.routers.tablet.tls=true --label traefik.http.routers.tablet.tls.certresolver=letsencrypt --label traefik.http.services.tablet.loadbalancer.server.port=3000 --env-file /opt/digital-home/smart-home-tablet/.tablet.env smart-home-tablet:latest
echo "Deploy done" echo 'Deploy done'