@@ -55,37 +55,49 @@ jobs:
5555
5656 # Authenticate to container image registry to push the image
5757 - name : Podman Login
58- uses : redhat-actions/podman-login@v1
58+ uses : redhat-actions/podman-login@4934294ad0449894bcd1e9f191899d7292469603 # v1.7
5959 with :
6060 registry : ${{ secrets.registry }}
6161 username : ${{ secrets.user }}
6262 password : ${{ secrets.password }}
6363
6464 - name : Create and add to manifest
6565 run : |
66- buildah manifest create ${{ inputs.name }}
67- buildah manifest add ${{ inputs.name }} ${{ secrets.registry }}/${{ inputs.name }}:${{ inputs.tag }}-linux-amd64
68- buildah manifest add ${{ inputs.name }} ${{ secrets.registry }}/${{ inputs.name }}:${{ inputs.tag }}-linux-ppc64le
69- buildah manifest add ${{ inputs.name }} ${{ secrets.registry }}/${{ inputs.name }}:${{ inputs.tag }}-linux-arm64
70- buildah manifest add ${{ inputs.name }} ${{ secrets.registry }}/${{ inputs.name }}:${{ inputs.tag }}-linux-s390x
66+ buildah manifest create ${INPUT_NAME}
67+ buildah manifest add ${INPUT_NAME} ${{ secrets.registry }}/${INPUT_NAME}:${INPUT_TAG}-linux-amd64
68+ buildah manifest add ${INPUT_NAME} ${{ secrets.registry }}/${INPUT_NAME}:${INPUT_TAG}-linux-ppc64le
69+ buildah manifest add ${INPUT_NAME} ${{ secrets.registry }}/${INPUT_NAME}:${INPUT_TAG}-linux-arm64
70+ buildah manifest add ${INPUT_NAME} ${{ secrets.registry }}/${INPUT_NAME}:${INPUT_TAG}-linux-s390x
71+ env :
72+ INPUT_NAME : ${{ inputs.name }}
73+ INPUT_TAG : ${{ inputs.tag }}
7174
7275 - name : Push manifest
7376 id : push-manifest
7477 run : |
75- podman manifest push --digestfile imagedigest ${{ inputs.name }} ${{ secrets.registry }}/${{ inputs.name }} :${{ inputs.tag } } --all
78+ podman manifest push --digestfile imagedigest ${INPUT_NAME} ${{ secrets.registry }}/${INPUT_NAME} :${INPUT_TAG } --all
7679 echo "digest=$(cat imagedigest)" | tee -a $GITHUB_OUTPUT
80+ env :
81+ INPUT_NAME : ${{ inputs.name }}
82+ INPUT_TAG : ${{ inputs.tag }}
7783
7884 - name : Sign the published manifest
7985 # only sign if release is published, not for ghactions branch push
8086 # which is used for testing and development.
8187 if : ${{ inputs.sign == true && github.event.release && github.event.action == 'published' }}
8288 run : |
83- cosign sign --yes --recursive ${{ secrets.registry }}/${{ inputs.name }}@${{ steps.push-manifest.outputs.digest }}
89+ cosign sign --yes --recursive ${{ secrets.registry }}/${INPUT_NAME}@${DIGEST}
90+ env :
91+ DIGEST : ${{ steps.push-manifest.outputs.digest }}
92+ INPUT_NAME : ${{ inputs.name }}
8493
8594 - name : Verify the image signature
8695 if : ${{ inputs.sign == true && github.event.release && github.event.action == 'published' }}
8796 run : |
8897 cosign verify \
89- --certificate-identity https://github.com/${{ github.repository }}/.github/workflows/build-multiarch.yml@refs/tags/${{ inputs.tag } } \
98+ --certificate-identity https://github.com/${{ github.repository }}/.github/workflows/build-multiarch.yml@refs/tags/${INPUT_TAG } \
9099 --certificate-oidc-issuer https://token.actions.githubusercontent.com \
91- ${{ secrets.registry }}/${{ inputs.name }}:${{ inputs.tag }}
100+ ${{ secrets.registry }}/${INPUT_NAME}:${INPUT_TAG}
101+ env :
102+ INPUT_NAME : ${{ inputs.name }}
103+ INPUT_TAG : ${{ inputs.tag }}
0 commit comments