Fix pipeline yaml

This commit is contained in:
2026-02-20 12:15:36 +00:00
parent a29ac079d5
commit 5527cc51b2

View File

@@ -1,15 +1,10 @@
steps: steps:
build: - name: build-and-deploy
image: docker image: docker:27
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
commands: commands:
- docker build -t test-app:latest . - docker build -t test-app:latest .
- docker stop test-app 2>/dev/null || true - docker stop test-app || true
- docker rm test-app 2>/dev/null || true - docker rm test-app || true
- docker run -d --name test-app --network traefik-net - 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
--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