Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Created June 7, 2019 19:54
Show Gist options
  • Save kgriffs/088f46dc517a7c0f2cc18ecabd3bba7e to your computer and use it in GitHub Desktop.
Save kgriffs/088f46dc517a7c0f2cc18ecabd3bba7e to your computer and use it in GitHub Desktop.
Bash confirmation prompt
read -p "Push new image? [y/N]: " CONTINUE
if [[ $CONTINUE =~ ^[Yy]$ ]]; then
PYENV_VERSION=2.7.16 docker push gcr.io/example-214815/example-app:$CURRENT_VER
PYENV_VERSION=2.7.16 docker push gcr.io/example-214815/example-app:latest
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment