Skip to content

Instantly share code, notes, and snippets.

@oojacoboo
Created July 19, 2017 23:09
Show Gist options
  • Save oojacoboo/aa5d3eec0ef5fc7c88b6a863cf58fcd6 to your computer and use it in GitHub Desktop.
Save oojacoboo/aa5d3eec0ef5fc7c88b6a863cf58fcd6 to your computer and use it in GitHub Desktop.
# Gets the version label from the Dockerfile
getVersion() {
app="$1"
image="$2"
return version=$(awk -F= '$1 == "LABEL version" { print $2 }' "$LIB"/../../apps/$app/$image/Dockerfile)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment