CI: write the image tag of a develop build into a deployment repository #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
After a build of
develop, a staging environment should run the new image without a manual step.Proposal
An optional last step of the image workflow, for pushes to
developonly: it clones a deployment repository, sets the image tag (sha-<commit>) in a kustomization file, commits and pushes. A GitOps controller following that repository then deploys.Nothing about the deployment is written in this repository. The step reads:
DEPLOY_REPOSITORY:owner/nameon the same forge; the step is skipped when it is not set;DEPLOY_KUSTOMIZATION: path of the kustomization file holding thenewTagof the image;DEPLOY_BRANCH(defaultdevelop);DEPLOY_TOKEN: a token allowed to push to that repository.Releases (
vX.Y.Ztags) are not deployed by this step.