ci: write the image tag of a develop build into a deployment repository #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/28-deploy-develop-tag"
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?
Closes #28
What
.forgejo/scripts/deploy-tag.sh: clones a deployment repository, setsnewTagof the image in one kustomization file, commits and pushes; does nothing when the tag is already there; retries when someone pushed in between.developonly, after the image is pushed.Settings (Actions of this repository)
DEPLOY_REPOSITORYowner/nameof the deployment repository on the same forge. The step is skipped when it is not set.DEPLOY_KUSTOMIZATIONDEPLOY_BRANCHdevelop)DEPLOY_TOKENNothing about a deployment is written in this repository.
Security
developonly, never for a pull request: a pull request cannot make it run with the token.newTagfor the image.Verified
dashagainst a local copy of a deployment repository: new tag (one line changed, one commit), same tag again (nothing pushed), unknown image, unsafe tag, path outside the repository, missing file (all refused), and a run with a token whose value never appears in the output.Not verified
🤖 Generated with Claude Code