fix: CI pipeline alpine+docker-cli, calendar redesign + POST API
Some checks failed
Deploy / deploy (push) Failing after 4s
Some checks failed
Deploy / deploy (push) Failing after 4s
This commit is contained in:
@@ -8,17 +8,19 @@ jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: docker:24-cli
|
||||
image: alpine:3.19
|
||||
volumes:
|
||||
- /opt/digital-home:/opt/digital-home
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
steps:
|
||||
- name: Build and restart
|
||||
- name: Build and deploy
|
||||
run: |
|
||||
apk add --no-cache docker-cli git
|
||||
cd /opt/digital-home/smart-home-tablet
|
||||
git config --global --add safe.directory /opt/digital-home/smart-home-tablet
|
||||
git pull origin main
|
||||
docker build -t smart-home-tablet:latest .
|
||||
docker stop 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
|
||||
echo 'Done'
|
||||
echo "Deploy done"
|
||||
|
||||
Reference in New Issue
Block a user