Fix pipeline - use deploy script

This commit is contained in:
2026-02-20 12:20:08 +00:00
parent 03c705043d
commit ad72e84140

View File

@@ -3,14 +3,8 @@ steps:
image: docker:27 image: docker:27
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /opt/build/test-app:/workspace
- /opt/deploy-scripts:/deploy-scripts
commands: commands:
- docker build -t test-app:latest . - cp -r . /workspace/
- docker stop test-app || true - /deploy-scripts/deploy-test-app.sh
- 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