mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-26 20:18:43 +09:00
fix: final tag release
This commit is contained in:
parent
d3d196af1c
commit
08cab1679e
13
.github/workflows/publish-image.yml
vendored
13
.github/workflows/publish-image.yml
vendored
@@ -167,17 +167,22 @@ jobs:
|
||||
while IFS= read -r tag; do
|
||||
[ -z "$tag" ] && continue
|
||||
echo "Creating manifest for $tag"
|
||||
src_tag="$tag"
|
||||
if [[ "$tag" == *:latest && "${GITHUB_REF}" == refs/tags/* ]]; then
|
||||
ref="${GITHUB_REF#refs/tags/}"
|
||||
src_tag="${tag%:latest}:$ref"
|
||||
fi
|
||||
if [ -n "${IMAGE_DESCRIPTION:-}" ]; then
|
||||
docker buildx imagetools create \
|
||||
--tag "$tag" \
|
||||
--annotation "index:org.opencontainers.image.description=${IMAGE_DESCRIPTION}" \
|
||||
"${tag}-amd64" \
|
||||
"${tag}-arm64"
|
||||
"${src_tag}-amd64" \
|
||||
"${src_tag}-arm64"
|
||||
else
|
||||
docker buildx imagetools create \
|
||||
--tag "$tag" \
|
||||
"${tag}-amd64" \
|
||||
"${tag}-arm64"
|
||||
"${src_tag}-amd64" \
|
||||
"${src_tag}-arm64"
|
||||
fi
|
||||
done <<< "$tags"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user