Skip to content

Commit

Permalink
fix: build number in tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 8, 2024
1 parent dd24f6e commit 8e8bf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ BUILD_ID=${COMMIT_DATE}-${COMMIT_ABBREV_SHA}
if $(git rev-parse --is-shallow-repository); then
git fetch --shallow-since=${COMMIT_DATE}T00:00:00Z --all
fi
BUILD_NUMBER=$(git rev-list --since=${COMMIT_DATE}T00:00:00Z --count ${COMMIT_SHA})
BUILD_NUMBER=$(git rev-list --since=${COMMIT_DATE}T00:00:00Z --first-parent --count ${COMMIT_SHA})
BUILD_ID2=${COMMIT_DATE//-/.}.${BUILD_NUMBER}

docker tag ${TAG}:${COMMIT_SHA} ${TAG}:${BUILD_ID}
Expand Down

0 comments on commit 8e8bf73

Please sign in to comment.