Skip to content

Commit a03bd08

Browse files
committed
Fix subject-name formatting in artifact attestation for backend and frontend images
1 parent 4300b78 commit a03bd08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build_and_deploy_containers.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
push: true
126126
tags: |
127127
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.BACKEND_IMAGE_NAME }}-${{ github.actor }}:latest
128-
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.BACKEND_IMAGE_NAME }}-${{ github.actor }}:${{ github.sha }}
128+
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.BACKEND_IMAGE_NAME }}-${{ github.actor }}:${{ github.sha }}
129129
labels: ${{ steps.meta.outputs.labels }}
130130
cache-from: type=local,src=/tmp/.buildx-cache
131131
cache-to: type=local,dest=/tmp/.buildx-cache-new
@@ -141,7 +141,7 @@ jobs:
141141
push: true
142142
tags: |
143143
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.FRONTEND_IMAGE_NAME }}-${{ github.actor }}:latest
144-
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.FRONTEND_IMAGE_NAME }}-${{ github.actor }}:${{ github.sha }}
144+
${{ env.REGISTRY }}/${{ github.repository }}/${{ env.FRONTEND_IMAGE_NAME }}-${{ github.actor }}:${{ github.sha }}
145145
labels: ${{ steps.meta.outputs.labels }}
146146
cache-from: type=local,src=/tmp/.buildx-cache
147147
cache-to: type=local,dest=/tmp/.buildx-cache-new
@@ -155,14 +155,14 @@ jobs:
155155
- name: Generate artifact attestation for Rust Backend Image
156156
uses: actions/attest-build-provenance@v2
157157
with:
158-
subject-name: ${{ env.REGISTRY }}/${{ env.BACKEND_IMAGE_NAME }}-rust-backend
158+
subject-name: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.BACKEND_IMAGE_NAME }}-${{ github.actor }}
159159
subject-digest: ${{ steps.push_backend.outputs.digest }}
160160
push-to-registry: true
161161

162162
# Generate artifact attestation for Next.js frontend image
163163
- name: Generate artifact attestation for Next.js Frontend Image
164164
uses: actions/attest-build-provenance@v2
165165
with:
166-
subject-name: ${{ env.REGISTRY }}/${{ env.FRONTEND_IMAGE_NAME }}-nextjs-frontend
166+
subject-name: ${{ env.REGISTRY }}/${{ github.repository }}/${{ env.FRONTEND_IMAGE_NAME }}-${{ github.actor }}
167167
subject-digest: ${{ steps.push_frontend.outputs.digest }}
168168
push-to-registry: true

0 commit comments

Comments
 (0)