ci: use docker:cli image with socket mount for builds
Some checks failed
Deploy / deploy (push) Failing after 7s
Some checks failed
Deploy / deploy (push) Failing after 7s
This commit is contained in:
@@ -7,13 +7,18 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
container:
|
||||||
|
image: docker:24-cli
|
||||||
|
volumes:
|
||||||
|
- /opt/digital-home:/opt/digital-home
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- name: Build and restart
|
- name: Build and restart
|
||||||
run: |
|
run: |
|
||||||
cd /opt/digital-home/smart-home-tablet
|
cd /opt/digital-home/smart-home-tablet
|
||||||
git pull origin main
|
git pull origin main
|
||||||
sudo docker build -t smart-home-tablet:latest .
|
docker build -t smart-home-tablet:latest .
|
||||||
sudo docker stop tablet-yfh53kixpwkjlo4zibglx4n2 || true
|
docker stop tablet-yfh53kixpwkjlo4zibglx4n2 || true
|
||||||
sudo docker rm tablet-yfh53kixpwkjlo4zibglx4n2 || true
|
docker rm tablet-yfh53kixpwkjlo4zibglx4n2 || true
|
||||||
sudo 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' -e HA_URL=http://192.168.31.110:8123 -e 'HA_TOKEN=' -e NEXT_PUBLIC_APP_URL=https://tablet.digital-home.site 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' -e HA_URL=http://192.168.31.110:8123 -e NEXT_PUBLIC_APP_URL=https://tablet.digital-home.site smart-home-tablet:latest
|
||||||
echo 'Done'
|
echo 'Deploy done'
|
||||||
|
|||||||
Reference in New Issue
Block a user