Skip to content

Commit

Permalink
fix: use COMMIT_TAG_VERSION properly in deploy_dockerhub (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored Sep 5, 2023
1 parent 4c9a438 commit 064ddc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-system/scripts/deploy_dockerhub
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ fi
REPOSITORY=$1
IMAGE_TAG=$COMMIT_TAG_VERSION
IMAGE_COMMIT_URI=$ECR_DEPLOY_URL/$REPOSITORY:$COMMIT_HASH
IMAGE_DEPLOY_URI=aztecprotocol/$REPOSITORY:$IMAGE_TAG
IMAGE_LATEST_URI=aztecprotocol/$REPOSITORY:latest

# Check if it's a repo-specific tag
Expand All @@ -27,6 +26,8 @@ if [[ "$COMMIT_TAG" == *"/"* ]]; then
else
COMMIT_TAG_VERSION=$COMMIT_TAG
fi
IMAGE_TAG=$COMMIT_TAG_VERSION
IMAGE_DEPLOY_URI=aztecprotocol/$REPOSITORY:$IMAGE_TAG

# Check it's a valid semver.
VERSION=$(npx semver $COMMIT_TAG_VERSION)
Expand Down

0 comments on commit 064ddc3

Please sign in to comment.