CI owns the whole stack — deploy via docker stack deploy
Build & Deploy / build (push) Successful in 5s
Build & Deploy / deploy (push) Successful in 5s

- stack.yml: parameterize image tag with ${IMAGE_TAG:-latest} so callers
  can pin the SHA; falls back to :latest for manual invocations
- flow.yml: replace service update with `docker stack deploy -c -`
  piped over SSH. Handles both first-time deploy and rolling updates.
  No more manual `docker stack deploy` on the manager before CI works.

Portainer can still view the stack but should not auto-update the same
one from git — two writers will conflict.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
rlabadmin
2026-04-23 15:31:14 +02:00
parent 34173ee9d0
commit 788eaa390f
2 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ networks:
services:
web:
image: git.dev.serso.org/test/testsite:latest
image: git.dev.serso.org/test/testsite:${IMAGE_TAG:-latest}
networks:
- traefik-public
deploy: