Skip to content

Instantly share code, notes, and snippets.

@brurucy
Created June 30, 2022 11:01
Show Gist options
  • Save brurucy/2062f7a1833cc15808b378928850434f to your computer and use it in GitHub Desktop.
Save brurucy/2062f7a1833cc15808b378928850434f to your computer and use it in GitHub Desktop.
rego-snippet-example
imageDefinition[result] {
data.neodora.files["go.mod"] == null
ciImage := last_image_from_file(input)
normalImage := trim_suffix(last_image_from_file(data.neodora.files.Dockerfile), "-dev")
ciImage != normalImage
result = {
"ciImage": ciImage,
"normalImage": normalImage,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment