Tag multiple separate version streams in a single git repo #4731
-
We have a monorepo with several separate services contained within. My intent was the following for managing staging/prod deployments:
On the image updates I can define the following: filterTags:
pattern: '^service_a-v(?P<version>.+)$'
extract: '$version'
policy:
semver:
range: x.x.x and only detect new images for the given service, but it seems to me that this isn't possible on the GitRepository to be |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Instead of using Git you can switch to In CI, when you tag Git with # 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)" |
Beta Was this translation helpful? Give feedback.
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: