Hello, guys. I have a KubernetesRun with image `im...
# ask-community
m
Hello, guys. I have a KubernetesRun with image
image=f"project_name/prefect:etl_tools-{sha}"
where sha is a git commit SHA. And I have a registration bash file that call
prefect register --project etl -p "/flows/etl/**/**.py"
. Obvious that every commit to repo change SHA, change the image, and registration process bump version for all flows. There is a way to NOT bump all version and exclude image name from the idempotency key?
k
Hey @Marko Herkaliuk, how is the SHA populated there? I think that changes the RunConfig setting, which would need a version bump because it’s core to the flow unfortunately. If you were using
flow.register()
, it takes in a
version_group_id
which is a way to regularly update a flow. Docs here . Unfortunately, this is not available in the CLI, though I think we would accept a contribution if you’re interested? 😄 We are making changes btw to versioning in the future so that you specify your own versions when registering flows
m
Hi, @Kevin Kho, thnx for answering.
how is the SHA populated there?
by ENV in dockerfile,
Copy code
# gets from docker build ci
ARG CI_COMMIT_SHA
ENV CI_COMMIT_SHA $CI_COMMIT_SHA
If you were using 
flow.register()
 , it takes in a 
version_group_id
 which is a way to regularly update a flow.
thanks, i will read.
We are making changes btw to versioning in the future so that you specify your own versions when registering flows
ohh, sounds great