mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-21 18:01:06 +09:00
fix: ensure manifest creation is quoted
This commit is contained in:
parent
a2caf0ae5a
commit
47d8122a7f
17
.github/workflows/publish-image.yml
vendored
17
.github/workflows/publish-image.yml
vendored
@@ -167,15 +167,18 @@ jobs:
|
||||
while IFS= read -r tag; do
|
||||
[ -z "$tag" ] && continue
|
||||
echo "Creating manifest for $tag"
|
||||
ANNOTATION_ARG=""
|
||||
if [ -n "${IMAGE_DESCRIPTION:-}" ]; then
|
||||
ANNOTATION_ARG="--annotation index:org.opencontainers.image.description=${IMAGE_DESCRIPTION}"
|
||||
docker buildx imagetools create \
|
||||
--tag "$tag" \
|
||||
--annotation "index:org.opencontainers.image.description=${IMAGE_DESCRIPTION}" \
|
||||
"${tag}-amd64" \
|
||||
"${tag}-arm64"
|
||||
else
|
||||
docker buildx imagetools create \
|
||||
--tag "$tag" \
|
||||
"${tag}-amd64" \
|
||||
"${tag}-arm64"
|
||||
fi
|
||||
docker buildx imagetools create \
|
||||
--tag "$tag" \
|
||||
$ANNOTATION_ARG \
|
||||
"${tag}-amd64" \
|
||||
"${tag}-arm64"
|
||||
done <<< "$tags"
|
||||
|
||||
- name: Install Cosign
|
||||
|
||||
Reference in New Issue
Block a user