kork
kork copied to clipboard
feat: Ability to easily compare versions using #toArtifactVersion
If you want to verify that your automatic pipeline does not deploy an old version because it is accidentally pushed to the docker repo
eg
#toArtifactVersion(execution.trigger.tag.replace("v", "")) >= #toArtifactVersion(#stage("Find Artifacts From Resource (Manifest)").manifest.spec.template.spec.containers[0].image.split(":")[1].replace("v", ""))