mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 03:10:39 +00:00
update script to build images to show more info and confirm
This commit is contained in:
parent
1d2a5a2206
commit
b90699f138
@ -13,6 +13,18 @@ minor=$(echo $tag | awk -F. '{print $2}')
|
|||||||
|
|
||||||
tf_ver=$(grep TERRAFORM_VERSION Dockerfile | head -n 1 | awk '{print $3}')
|
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 .
|
docker build -t jmccann/drone-terraform:latest .
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
Loading…
Reference in New Issue
Block a user