ci: gate redeploy step on workflow_dispatch.deploy=true #4
Reference in New Issue
Block a user
Delete Branch "feat/portainer-redeploy-step"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resumen
deploy=true.[METRIC]se rellenarán tras el primer deploy real.Cambios
.gitea/workflows/ci-cd.yaml: build empuja tanto:latestcomo:0.0.1. El step 3 (redeploy) hace DELETE+CREATE idempotente contra la API de Portainer y smoke-testea el puerto interno.docs/ci-optimization-proposal.md: nuevo.Secrets requeridos (ya creados en este repo)
PORTAINER_URL=http://192.168.1.30:9000PORTAINER_TOKEN=***PORTAINER_ENDPOINT_ID=2PORTAINER_STACK_ID=139Plan de deploy
deploy=true(solo build+push).gitlab.impresion3d.pro/root/davidaragon-portfolio:0.0.1en el registry.deploy=true→ primer redeploy real.Riesgo
Bajo. El step de deploy es idempotente (DELETE devuelve 404 si ya no existe y sigue con CREATE). El primer run sin deploy=true no toca Portainer en absoluto.