From 3bc9fb70793112cd653c9346177b4c31e6d05706 Mon Sep 17 00:00:00 2001 From: Wojciech Kozyra Date: Mon, 3 Feb 2025 13:27:27 +0100 Subject: [PATCH] Add early validation to release script --- scripts/release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/release.sh b/scripts/release.sh index 5e3a242db..de5c6d204 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -23,6 +23,16 @@ if [[ -z "$COMMIT_HASH" ]]; then exit 1 fi +if ! docker buildx imagetools 2>&1 >/dev/null; then + echo "Command \"docker buildx imagetools\" failed. Make sure buildx is enabled/installed on your platform." + exit 1 +fi + +if ! gh auth status 2>&1 >/dev/null; then + echo "Command \"gh auth status\" failed. Make sure to login authenticate gh CLI." + exit 1 +fi + set -u mkdir -p "$ROOT_DIR/release_tmp"