ensure jq is installed
This commit is contained in:
@@ -17,6 +17,7 @@ packages:
|
||||
- qemu-openrc
|
||||
- qemu-modules
|
||||
- qemu-aarch64
|
||||
- jq
|
||||
|
||||
tasks:
|
||||
- prep: |
|
||||
|
||||
@@ -19,8 +19,6 @@ tasks:
|
||||
- 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"
|
||||
|
||||
Reference in New Issue
Block a user