Skip to content

Commit 862d8b2

Browse files
Merge pull request #18 from microsoft/New-Pipeline
fix: Made image tag as unique
2 parents 97a005e + 7f44e79 commit 862d8b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
run: |
4141
BRANCH="${{ github.ref_name }}"
4242
DATE="${{ steps.date.outputs.date }}"
43+
GITHUB_RUN_NUMBER="${{ github.run_number }}"
4344
if [[ "$BRANCH" == "main" ]]; then
4445
BASE_TAG="latest"
4546
elif [[ "$BRANCH" == "dev" ]]; then
@@ -51,7 +52,7 @@ jobs:
5152
else
5253
BASE_TAG="pullrequest-ignore"
5354
fi
54-
DATE_TAG="${BASE_TAG}-${DATE}"
55+
DATE_TAG="${BASE_TAG}_${DATE}_${GITHUB_RUN_NUMBER}"
5556
echo "BASE_TAG=${BASE_TAG}" >> $GITHUB_ENV
5657
echo "DATE_TAG=${DATE_TAG}" >> $GITHUB_ENV
5758
echo "Base tag: $BASE_TAG, Date tag: $DATE_TAG"

0 commit comments

Comments
 (0)