Skip to content

Commit 5970ae4

Browse files
author
Oleg
committed
Add tag with version to the final image
1 parent 550260a commit 5970ae4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ jobs:
109109
registry: ${{ env.IMAGE_REGISTRY }}
110110
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
111111

112+
- name: Add tag with version to the image
113+
run: podman tag ${{ steps.build_image.outputs.image-with-tag }} ${{ steps.build_image.outputs.image }}:${{ steps.current-version.outputs.value }}
114+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
115+
112116
- name: Publish
113117
id: push
114118
uses: redhat-actions/push-to-registry@v2

0 commit comments

Comments
 (0)