Skip to content

Instantly share code, notes, and snippets.

@joerx
Created December 21, 2018 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joerx/303b78a5440f023a8e6a953b7f1ab1f9 to your computer and use it in GitHub Desktop.
Save joerx/303b78a5440f023a8e6a953b7f1ab1f9 to your computer and use it in GitHub Desktop.
Extract docker images from drone yaml
images=$(cat .drone.yml | grep "image: quay.io" | grep -v "hb-backend" | sed -e 's/[[:space:]]\{0,\}image: quay.io\/\(.*\)\/\(.*\)/\1\/\2/' | awk -F ':' '{ print $1 ":" ($2==""?"latest":$2) }' | uniq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment