Deploy via webhook
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2026-02-20 14:04:30 +00:00
parent 9a06e72dfa
commit 598ea554a8

View File

@@ -1,14 +1,9 @@
steps: steps:
- name: build-and-deploy - name: deploy
image: docker:27 image: curlimages/curl
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when: when:
- event: push - event: push
branch: main branch: main
commands: commands:
- docker build -t test-app:latest . - curl -sf http://172.18.0.9:9000/hooks/deploy-test-app
- docker stop test-app || true - echo "Deploy triggered!"
- docker rm test-app || true
- docker run -d --name test-app --network traefik-net --label traefik.enable=true --label "traefik.http.routers.test-app.rule=Host(\`test-app.2secure.pl\`)" --label traefik.http.routers.test-app.tls.certresolver=letsencrypt --label traefik.http.services.test-app.loadbalancer.server.port=80 test-app:latest
- echo "Deploy OK!"