fix annotations
This commit is contained in:
13
Taskfile.yml
13
Taskfile.yml
@@ -18,7 +18,18 @@ tasks:
|
||||
- (podman manifest exists {{.IMAGE}}:{{.TAG}} && podman manifest rm {{.IMAGE}}:{{.TAG}}) || true
|
||||
- podman manifest create {{.IMAGE}}:{{.TAG}}
|
||||
- podman build {{.CLI_ARGS}} --platform linux/amd64,linux/arm64 --manifest {{.IMAGE}}:{{.TAG}} {{.CLI_ARGS}} -f Dockerfile ctx
|
||||
|
||||
- |
|
||||
# get digests like:
|
||||
# podman manifest inspect {{.IMAGE}}:{{.TAG}} | jq -r '.manifests[].digest'
|
||||
DIGESTS=$(podman manifest inspect {{.IMAGE}}:{{.TAG}} | jq -r '.manifests[].digest')
|
||||
for DIGEST in $DIGESTS; do
|
||||
echo "Annotating digest: $DIGEST"
|
||||
podman manifest annotate \
|
||||
--annotation org.opencontainers.image.description="A minimal image for running Linux CLI utilities" \
|
||||
--annotation org.opencontainers.image.url=https://git.sr.ht/~jswank/alpine-cli \
|
||||
--annotation org.opencontainers.image.title=jswank/alpine-cli \
|
||||
{{.IMAGE}}:{{.TAG}} $DIGEST
|
||||
done
|
||||
publish:
|
||||
desc: publish the image with the default tag, 'current', and 'latest'
|
||||
cmds:
|
||||
|
||||
Reference in New Issue
Block a user