Skip to content

Commit 847d0b9

Browse files
committed
fix: gh push on push event with latest tag was not using latest as tag but sha
Signed-off-by: Adrian Riobo <ariobolo@redhat.com>
1 parent d4e5a5b commit 847d0b9

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ jobs:
7373
make oci-tag
7474
make oci-push
7575
env:
76-
IMAGE_TARGET_TAG: latest
76+
IMAGE_SOURCE_TAG: ${{ env.IMAGE_TAG }}
77+
IMAGE_TAG: latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ oci-manifest-push:
3939
${CONTAINER_MANAGER} manifest push $(IMAGE_NAME)
4040

4141
oci-tag:
42-
${CONTAINER_MANAGER} tag $(IMAGE_NAME) $(IMAGE_REPO):$(IMAGE_TARGET_TAG)
42+
${CONTAINER_MANAGER} tag $(IMAGE_REPO):$(IMAGE_SOURCE_TAG) $(IMAGE_NAME)
4343

4444
oci-push:
4545
${CONTAINER_MANAGER} push $(IMAGE_NAME)

0 commit comments

Comments
 (0)