Skip to content

Tag multiple separate version streams in a single git repo #4731

Answered by stefanprodan
TheEdgeOfRage asked this question in Q&A
Discussion options

You must be logged in to vote

Instead of using Git you can switch to OCIRepository as the source of your apps Flux Kustomizations.

In CI, when you tag Git with service_a-x.y.z, publish an OCI artifact like so:

# parse the git tag and extract $service_name and $service_semver
flux push artifact oci://ghcr.io/org/manifests/${service_name}:${service_semver} \
--path="./" \
--source="$(git config --get remote.origin.url)" \
--revision="$(git tag --points-at HEAD)@sha1:$(git rev-parse HEAD)"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheEdgeOfRage
Comment options

Answer selected by TheEdgeOfRage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants