From 0f7e174499c5aae4899a889a2f2a2042fa8ac652 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Fri, 4 Oct 2024 09:20:26 +0200 Subject: [PATCH] 'reminder about build-wheel-first --- builddocker.bash | 7 +++++++ buildxdocker.bash | 7 +++++++ 2 files changed, 14 insertions(+) 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