Skip to content

Commit

Permalink
Add early validation to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
wkozyra95 committed Feb 3, 2025
1 parent 0fa6ced commit 3bc9fb7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3bc9fb7

Please sign in to comment.