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