Skip to content

Commit f153f43

Browse files
authored
Publish with annotations
1 parent 4c8ce27 commit f153f43

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ jobs:
7878
env:
7979
TAGS: ${{ steps.meta.outputs.tags }}
8080
run: |
81+
# Prepare annotation flags from DOCKER_METADATA_OUTPUT_LABELS
82+
ANNOTATION_FLAGS=""
83+
while IFS= read -r annotation; do
84+
ANNOTATION_FLAGS+=" --annotation $annotation"
85+
done <<< "$DOCKER_METADATA_OUTPUT_LABELS"
86+
8187
echo "$TAGS" | while IFS= read -r tag; do
82-
docker buildx imagetools create ghcr.io/trainyapp/postgres:sha-07e7eade33ccb579417c7f2a96374177eff91570-arm64 ghcr.io/trainyapp/postgres:sha-07e7eade33ccb579417c7f2a96374177eff91570-amd64 --tag=$tag
88+
docker buildx imagetools create ghcr.io/trainyapp/postgres:sha-07e7eade33ccb579417c7f2a96374177eff91570-arm64 ghcr.io/trainyapp/postgres:sha-07e7eade33ccb579417c7f2a96374177eff91570-amd64 --tag=$tag $ANNOTATION_FLAGS
8389
done

0 commit comments

Comments
 (0)