Skip to content

Commit 6a7bc9f

Browse files
Copilotalessfg
andcommitted
Remove annotation handling from manifest job to fix annotation errors
Co-authored-by: alessfg <15654525+alessfg@users.noreply.github.com>
1 parent c66f913 commit 6a7bc9f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/alpine-mainline.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,14 @@ jobs:
294294
type=raw,value=mainline-alpine${{ needs.version.outputs.distro }}-slim
295295
type=raw,value=alpine-slim
296296
type=raw,value=alpine${{ needs.version.outputs.distro }}-slim
297-
env:
298-
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
299297
300298
- name: Push slim manifest to external registries
301299
if: ${{ github.event_name != 'pull_request' }}
302300
run: |
303301
TAGS="${{ steps.meta-slim.outputs.tags }}"
304-
ANNOTATIONS=$(echo '${{ steps.meta-slim.outputs.annotations }}' | jq -r 'to_entries | map("--annotation \"" + .key + "=" + .value + "\"") | join(" ")')
305302
for tag in $TAGS; do
306-
echo "Pushing manifest for $tag from local registry with annotations"
307-
eval "docker buildx imagetools create $ANNOTATIONS -t \"$tag\" localhost:5000/nginx-unprivileged:alpine-slim"
303+
echo "Pushing manifest for $tag from local registry"
304+
docker buildx imagetools create -t "$tag" localhost:5000/nginx-unprivileged:alpine-slim
308305
done
309306
310307
- name: Extract metadata for core image
@@ -328,17 +325,14 @@ jobs:
328325
type=raw,value=mainline-alpine${{ needs.version.outputs.distro }}
329326
type=raw,value=alpine
330327
type=raw,value=alpine${{ needs.version.outputs.distro }}
331-
env:
332-
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
333328
334329
- name: Push core manifest to external registries
335330
if: ${{ github.event_name != 'pull_request' }}
336331
run: |
337332
TAGS="${{ steps.meta-core.outputs.tags }}"
338-
ANNOTATIONS=$(echo '${{ steps.meta-core.outputs.annotations }}' | jq -r 'to_entries | map("--annotation \"" + .key + "=" + .value + "\"") | join(" ")')
339333
for tag in $TAGS; do
340-
echo "Pushing manifest for $tag from local registry with annotations"
341-
eval "docker buildx imagetools create $ANNOTATIONS -t \"$tag\" localhost:5000/nginx-unprivileged:alpine"
334+
echo "Pushing manifest for $tag from local registry"
335+
docker buildx imagetools create -t "$tag" localhost:5000/nginx-unprivileged:alpine
342336
done
343337
344338
# Docker Hub signing for slim

0 commit comments

Comments
 (0)