Skip to content

Commit 7ab5128

Browse files
authored
Fix image tagging logic for pipeline (#229)
1 parent fb09766 commit 7ab5128

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/pr-ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,9 @@ jobs:
178178
set -eo pipefail
179179
180180
# Determine the image tag to use.
181+
image_tag="$(git tag --points-at HEAD)"
181182
182-
if [[ -z "$(git tag --points-at HEAD)" ]]; then
183-
image_tag=$(git describe --tags)
184-
else
183+
if [[ -z "$image_tag" ]]; then
185184
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
186185
ref_name="pr${{ github.event.pull_request.number }}"
187186
else
@@ -477,7 +476,6 @@ jobs:
477476
run:
478477
shell: bash
479478
env:
480-
EXPLICIT_IMAGE_TAG: ${{ needs.get-config.outputs.IMAGE_TAG }}-amd64
481479
TYGER_ENVIRONMENT_NAME: ${{ needs.get-config.outputs.TYGER_ENVIRONMENT_NAME }}
482480

483481
steps:

0 commit comments

Comments
 (0)