Skip to content

Commit e32aae2

Browse files
committedMay 20, 2024··
feat: Add OCI image annotations
These annotations are useful for tools (such as Renovate and Snyk) to use as well as for manual use by individuals. See: https://github.com/opencontainers/image-spec/blob/v1.1.0/annotations.md#pre-defined-annotation-keys
1 parent 8bfe255 commit e32aae2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎script/release-workflow/docker-push.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ set -euo >/dev/null
77
push() {
88
## These will use cached builds, so wont build every time.
99
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm \
10+
--annotation "org.opencontainers.image.source=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" \
11+
--annotation "org.opencontainers.image.revision=$GITHUB_SHA" \
1012
--output=type=image,push=true \
1113
-t ${DOCKER_IMAGE_ORG_AND_NAME}:$1 .
1214
}
@@ -27,4 +29,4 @@ push_ghcr ${TAG}
2729
if [ "${PUSH_TO_LATEST}" != "false" ]; then
2830
push latest
2931
push_ghcr latest
30-
fi
32+
fi

0 commit comments

Comments
 (0)