File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 52
52
- name : ⬇️ Checkout code
53
53
uses : actions/checkout@v4
54
54
55
- - name : Enable Content Trust
56
- run : |
57
- echo "DOCKER_CONTENT_TRUST=1" >> "$GITHUB_ENV"
58
-
59
55
# -------------------------------------------------------------
60
56
# 0️⃣.5️⃣ Derive lower-case IMAGE_NAME for Docker tag
61
57
# -------------------------------------------------------------
100
96
# 3️⃣ Build & tag image (timestamp + latest)
101
97
# -------------------------------------------------------------
102
98
- name : 🏗️ Build Docker image
99
+ env :
100
+ DOCKER_CONTENT_TRUST : " 1"
103
101
run : |
104
102
TAG=$(date +%s)
105
103
echo "TAG=$TAG" >> "$GITHUB_ENV"
@@ -173,6 +171,8 @@ jobs:
173
171
password : ${{ secrets.GITHUB_TOKEN }}
174
172
175
173
- name : 🚀 Push image to GHCR
174
+ env :
175
+ DOCKER_CONTENT_TRUST : " 1"
176
176
run : |
177
177
docker push $IMAGE_NAME:${{ env.TAG }}
178
178
docker push $IMAGE_NAME:latest
@@ -190,7 +190,7 @@ jobs:
190
190
for REF in $IMAGE_NAME:latest $IMAGE_NAME:${{ env.TAG }}; do
191
191
echo "🔑 Signing $REF"
192
192
cosign sign --yes "$REF"
193
-
193
+
194
194
echo "📝 Attesting SBOM for $REF"
195
195
cosign attest --yes \
196
196
--predicate sbom.spdx.json \
You can’t perform that action at this time.
0 commit comments