Browse Source

update script to build images to show more info and confirm

pull/80/head
Jacob McCann 6 years ago
parent
commit
b90699f138
No known key found for this signature in database GPG Key ID: B5A476DE32B9AE72
  1. 12
      build-docker.sh

12
build-docker.sh

@ -13,6 +13,18 @@ minor=$(echo $tag | awk -F. '{print $2}')
tf_ver=$(grep TERRAFORM_VERSION Dockerfile | head -n 1 | awk '{print $3}')
echo "Confirm building images for:"
echo " MAJOR: ${major}"
echo " MINOR: ${minor}"
echo " TF_VERSION: ${tf_ver}"
read -p "Proceed? [Y/N] " ans
if [[ "$ans" != "Y" && "$ans" != "y" ]]; then
echo "Cancelling"
exit 0
fi
docker build -t jmccann/drone-terraform:latest .
set -x

Loading…
Cancel
Save