Skip to content

Commit c427f39

Browse files
author
Oleg
committed
Move part of tags to build image step
1 parent cd85920 commit c427f39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
containerfiles: |
7171
Dockerfile
7272
image: ${{ needs.meta.outputs.implementation-name }}
73-
tags: ${{ github.sha }}
73+
tags: ${{ github.sha }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }}
7474
archs: amd64, arm64
7575

7676
- name: Set DOCKER_HOST so podman-built images are findable
@@ -111,7 +111,7 @@ jobs:
111111
uses: redhat-actions/push-to-registry@v2
112112
with:
113113
image: ${{ steps.build_image.outputs.image }}
114-
tags: ${{ steps.current-version.outputs.value }} ${{ github.sha }} ${{ github.ref == 'refs/heads/main' && 'latest' || '' }}
114+
tags: ${{ steps.current-version.outputs.value }} ${{ steps.build_image.outputs.tags }}
115115
registry: ${{ env.IMAGE_REGISTRY }}
116116
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
117117

0 commit comments

Comments
 (0)