Real deploy pipeline

This commit is contained in:
2026-02-20 13:56:49 +00:00
parent 6237f2bed4
commit 5883f51918

View File

@@ -1,9 +1,13 @@
steps:
- name: test
image: alpine
- name: build-and-deploy
image: docker:27
privileged: true
when:
- event: push
branch: main
commands:
- echo "Pipeline dziala!"
- uname -a
- docker build -t test-app:latest .
- docker stop test-app || true
- 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!"