Created
June 30, 2022 11:01
-
-
Save brurucy/2062f7a1833cc15808b378928850434f to your computer and use it in GitHub Desktop.
rego-snippet-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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