Skip to content

Commit d5a7b31

Browse files
committed
Add manifest annotations
1 parent 0d1b6b7 commit d5a7b31

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/debian.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ jobs:
198198
working-directory: /tmp/digests
199199
shell: bash
200200
run: |
201-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
202-
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)
201+
eval "docker buildx imagetools create \
202+
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
203+
$(jq -cr '.annotations | map("--annotation \"" + . + "\"") | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
204+
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)"
203205
- name: Inspect image
204206
shell: bash
205207
run: |

.github/workflows/rhel.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,10 @@ jobs:
173173
working-directory: /tmp/digests
174174
shell: bash
175175
run: |
176-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
177-
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)
176+
eval "docker buildx imagetools create \
177+
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
178+
$(jq -cr '.annotations | map("--annotation \"" + . + "\"") | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
179+
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)"
178180
- name: Inspect image
179181
shell: bash
180182
run: |

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,10 @@ jobs:
193193
working-directory: /tmp/digests
194194
shell: bash
195195
run: |
196-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
197-
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)
196+
eval "docker buildx imagetools create \
197+
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
198+
$(jq -cr '.annotations | map("--annotation \"" + . + "\"") | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
199+
$(printf '${{ env.CONTAINER_IMAGE }}@sha256:%s ' *)"
198200
- name: Inspect image
199201
shell: bash
200202
run: |

0 commit comments

Comments
 (0)