|
63 | 63 | scone-signing-key: |
64 | 64 | description: "Signing Key for Scone Production (not required with `sconify-prod: false`)" |
65 | 65 | required: false |
| 66 | + outputs: |
| 67 | + debug-image: |
| 68 | + description: "Debug Sconified Image" |
| 69 | + value: ${{ jobs.push-debug.outputs.image }} |
| 70 | + debug-mrenclave: |
| 71 | + description: "Debug Sconified Image MrEnclave Fingerprint" |
| 72 | + value: ${{ jobs.push-debug.outputs.mrenclave }} |
| 73 | + debug-checksum: |
| 74 | + description: "Debug Sconified Image Checksum" |
| 75 | + value: ${{ jobs.push-debug.outputs.checksum }} |
| 76 | + prod-image: |
| 77 | + description: "Prod Sconified Image" |
| 78 | + value: ${{ jobs.push-prod.outputs.image }} |
| 79 | + prod-mrenclave: |
| 80 | + description: "Prod Sconified Image MrEnclave Fingerprint" |
| 81 | + value: ${{ jobs.push-prod.outputs.mrenclave }} |
| 82 | + prod-checksum: |
| 83 | + description: "Prod Sconified Image Checksum" |
| 84 | + value: ${{ jobs.push-prod.outputs.checksum }} |
66 | 85 |
|
67 | 86 | jobs: |
68 | 87 | build: |
@@ -111,7 +130,13 @@ jobs: |
111 | 130 |
|
112 | 131 | - name: Push Debug Image |
113 | 132 | if: ${{ inputs.sconify-debug }} |
114 | | - run: docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }} |
| 133 | + id: push-debug |
| 134 | + run: | |
| 135 | + docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }} |
| 136 | + echo "image=${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }}" >> "$GITHUB_OUTPUT" |
| 137 | + echo "checksum=$(docker image inspect ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }} \ |
| 138 | + | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" >> "$GITHUB_OUTPUT" |
| 139 | + echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }})" >> "$GITHUB_OUTPUT" |
115 | 140 |
|
116 | 141 | - name: Sconify Image Prod |
117 | 142 | if: ${{ inputs.sconify-prod }} |
@@ -140,4 +165,10 @@ jobs: |
140 | 165 |
|
141 | 166 | - name: Push Prod Image |
142 | 167 | if: ${{ inputs.sconify-prod }} |
143 | | - run: docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }} |
| 168 | + id: push-prod |
| 169 | + run: | |
| 170 | + docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }} |
| 171 | + echo "image=${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }}" >> "$GITHUB_OUTPUT" |
| 172 | + echo "checksum=$(docker image inspect ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }} \ |
| 173 | + | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" >> "$GITHUB_OUTPUT" |
| 174 | + echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }})" >> "$GITHUB_OUTPUT" |
0 commit comments