Skip to content

Commit 964d3d5

Browse files
committed
update tagging
1 parent a521c23 commit 964d3d5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/workflow-build-image.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,19 @@ jobs:
7575
path_context: ${{ inputs.context }}
7676
builder_image: ${{ inputs.base-image }}
7777
image: ${{ inputs.image-name }}
78-
tags: ${{ steps.tags.outputs.latest_tag }} ${{ steps.tags.outputs.full_version_tag }} ${{ steps.tags.outputs.minor_version_tag }} ${{ steps.tags.outputs.date_tag }}
79-
78+
tags: ${{ steps.tags.outputs.latest_tag }}
79+
80+
- name: Add tags
81+
run: |
82+
docker tag ${{ inputs.image-name }}:${{ steps.tags.outputs.latest_tag }} ${{ steps.tags.outputs.full_version_tag }}
83+
docker tag ${{ inputs.image-name }}:${{ steps.tags.outputs.latest_tag }} ${{ steps.tags.outputs.minor_version_tag }}
84+
docker tag ${{ inputs.image-name }}:${{ steps.tags.outputs.latest_tag }} ${{ steps.tags.outputs.date_tag }}
85+
8086
- name: Push-Image
81-
id: push-to-azure
8287
uses: redhat-actions/push-to-registry@v2
8388
with:
8489
image: ${{ steps.build_image.outputs.image }}
85-
tags: ${{ steps.build_image.outputs.tags }}
90+
tags: ${{ steps.tags.outputs.latest_tag }} ${{ steps.tags.outputs.full_version_tag }} ${{ steps.tags.outputs.minor_version_tag }} ${{ steps.tags.outputs.date_tag }}
8691
registry: ${{ inputs.registry }}
8792
username: ${{ secrets.registry-username }}
8893
password: ${{ secrets.registry-password }}

0 commit comments

Comments
 (0)