diff --git a/builddocker.bash b/builddocker.bash index d34b4bb..4e911da 100755 --- a/builddocker.bash +++ b/builddocker.bash @@ -4,6 +4,13 @@ set -e WHEEL_FILE=$(ls dist/ -1atr | grep bugsink | grep whl | tail -n1) echo "Building docker image with wheel file: $WHEEL_FILE" +echo "Is this the correct wheel file? [y/n]" +read -r response +if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then + echo "Please run the script again with the correct wheel file in the dist/ directory" + exit 1 +fi + # example: bugsink-0.1.8.dev5+g200ea5e.d20240827-py3-none-any.whl # if this a non-dev version, we tag the image with the full version number, major.minor, major, and latest diff --git a/buildxdocker.bash b/buildxdocker.bash index ccf39ae..00d99a6 100755 --- a/buildxdocker.bash +++ b/buildxdocker.bash @@ -4,6 +4,13 @@ set -e WHEEL_FILE=$(ls dist/ -1atr | grep bugsink | grep whl | tail -n1) echo "Building docker image with wheel file: $WHEEL_FILE" +echo "Is this the correct wheel file? [y/n]" +read -r response +if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then + echo "Please run the script again with the correct wheel file in the dist/ directory" + exit 1 +fi + # example: bugsink-0.1.8.dev5+g200ea5e.d20240827-py3-none-any.whl # if this a non-dev version, we tag the image with the full version number, major.minor, major, and latest