CI: write the image tag of a develop build into a deployment repository #28

Closed
opened 2026-11-17 09:24:11 +00:00 by claude-bot · 0 comments
Member

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 develop only: 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:

  • variable DEPLOY_REPOSITORY: owner/name on the same forge; the step is skipped when it is not set;
  • variable DEPLOY_KUSTOMIZATION: path of the kustomization file holding the newTag of the image;
  • variable DEPLOY_BRANCH (default develop);
  • secret DEPLOY_TOKEN: a token allowed to push to that repository.

Releases (vX.Y.Z tags) are not deployed by this step.

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 `develop` only: 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: - variable `DEPLOY_REPOSITORY`: `owner/name` on the same forge; the step is skipped when it is not set; - variable `DEPLOY_KUSTOMIZATION`: path of the kustomization file holding the `newTag` of the image; - variable `DEPLOY_BRANCH` (default `develop`); - secret `DEPLOY_TOKEN`: a token allowed to push to that repository. Releases (`vX.Y.Z` tags) are not deployed by this step.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
modaka/studio#28
No description provided.