Skip to content

Commit

Permalink
fix: use x.y.z-build for dependabot compatible tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 9, 2024
1 parent 01bcdce commit 8846434
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 @@ -21,7 +21,7 @@ if $(git rev-parse --is-shallow-repository); then
git fetch --unshallow
fi
BUILD_NUMBER=$(git rev-list --since=${COMMIT_DATE}T00:00:00Z --first-parent --count ${COMMIT_SHA})
BUILD_ID2=${COMMIT_DATE//-/.}.${BUILD_NUMBER}
BUILD_ID2=${COMMIT_DATE//-/.}-${BUILD_NUMBER}

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

0 comments on commit 8846434

Please sign in to comment.