Skip to content

Commit 91b93eb

Browse files
committed
Put metadata in annotations
Attestations aren't really usable
1 parent 5f83a55 commit 91b93eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/base-image.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
--tag danielflook/terraform-github-actions-base:latest \
4040
--platform linux/amd64,linux/arm64 \
4141
--attest type=provenance,mode=max,builder-id=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID \
42+
--annotation "index,manifest:org.opencontainers.image.created=$(date '+%Y-%m-%dT%H:%M:%S%z')" \
43+
--annotation "index,manifest:org.opencontainers.image.source=https://github.com/${{ github.repository }}" \
44+
--annotation "index,manifest:org.opencontainers.image.revision=${{ github.sha }}" \
45+
--annotation "index,manifest:org.opencontainers.image.title="terraform-github-actions-base" \
46+
--annotation "index,manifest:org.opencontainers.image.description=Base image for terraform-github-actions" \
47+
--annotation "index:org.opencontainers.image.ref.name=docker.io/danielflook/terraform-github-actions-base:$GITHUB_RUN_ID" \
48+
--annotation "index,manifest:builder-id=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" \
49+
--annotation "index,manifest:ref.tag=$GITHUB_RUN_ID" \
50+
--annotation "index,manifest:org.opencontainers.image.base.name=docker.io/debian:bullseye-slim" \
4251
--file image/Dockerfile-base \
4352
--push \
4453
--iidfile manifest-list-digest.txt \

0 commit comments

Comments
 (0)