Skip to content

Commit

Permalink
Fix output usage in push action
Browse files Browse the repository at this point in the history
  • Loading branch information
luhi-DT committed Jun 12, 2024
1 parent 2da9298 commit d16f374
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/actions/upload-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
description: Set if platform suffix should be skipped for image
required: false
default: ""
outputs:
digest:
description: The digest of the pushed image
value: ${{ steps.push-image.outputs.digest }}

runs:
using: "composite"
Expand All @@ -30,6 +34,7 @@ runs:
name: operator-${{ inputs.platform }}
path: /tmp
- name: Upload image to Registry
id: push-image
shell: bash
env:
IMAGE: "${{ inputs.registry }}/${{ inputs.repository }}:${{ inputs.version }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
with:
registry-type: public
- name: Push ${{matrix.platform}} to ${{matrix.registry}}
id: pushimage
id: push-image
uses: ./.github/actions/upload-image
with:
platform: ${{ matrix.platform }}
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Sign image for ${{matrix.registry}}
uses: ./.github/actions/sign-image
with:
image: ${{ matrix.url }}/${{ secrets[matrix.repository] }}:${{ needs.prepare.outputs.version }}-${{ matrix.platform }}@${{steps.pushimage.outputs.digest}}
image: ${{ matrix.url }}/${{ secrets[matrix.repository] }}:${{ needs.prepare.outputs.version }}-${{ matrix.platform }}@${{steps.push-image.outputs.digest}}
signing-key: ${{ secrets.COSIGN_PRIVATE_KEY }}
signing-password: ${{ secrets.COSIGN_PASSWORD }}

Expand Down

0 comments on commit d16f374

Please sign in to comment.