Skip to content

Commit c468671

Browse files
committed
fix(pipeline): set correct image tag
1 parent 26149e8 commit c468671

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-image.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ jobs:
1818
- name: Set image tag
1919
run: |
2020
if [ -z "${{github.event.pull_request.number}}" ]; then
21+
export IMAGE_TAG=latest
2122
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
2223
else
24+
export IMAGE_TAG=PR-${{github.event.pull_request.number}}
2325
echo "IMAGE_TAG=PR-${{github.event.pull_request.number}}" >> $GITHUB_ENV
2426
fi
2527
26-
echo "Image tag was set to ${{ env.IMAGE_TAG }}"
28+
echo "Image tag was set to $IMAGE_TAG"
2729
2830
check-oci-config:
2931
name: Check Containerfile

0 commit comments

Comments
 (0)