Created
December 21, 2018 13:05
-
-
Save joerx/303b78a5440f023a8e6a953b7f1ab1f9 to your computer and use it in GitHub Desktop.
Extract docker images from drone yaml
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
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