From 74b9a9f7cefa06b52004a0001ab25ecc1acdd803 Mon Sep 17 00:00:00 2001 From: Sven Trieflinger Date: Thu, 27 Jul 2023 13:57:37 +0200 Subject: [PATCH] fix(service): provide labels to ko command as separate flags (#61) Signed-off-by: Sven Trieflinger --- .github/workflows/service.publish.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/service.publish.yaml b/.github/workflows/service.publish.yaml index 9a5b9b7..a1777aa 100644 --- a/.github/workflows/service.publish.yaml +++ b/.github/workflows/service.publish.yaml @@ -68,9 +68,11 @@ jobs: uses: imjasonh/setup-ko@v0.6 - name: Publish Docker Images run: | + readarray -t labels < <( echo "${{ steps.meta.outputs.labels }}" ) + printf -v label_flags -- "--image-label=%s " "${labels[@]}" ko publish -B \ --tags=${{ steps.meta.outputs.tags }} \ - --image-label=${{ steps.meta.outputs.labels }} \ + ${label_flags} \ github.com/carbynestack/ephemeral/cmd/discovery \ github.com/carbynestack/ephemeral/cmd/ephemeral \ github.com/carbynestack/ephemeral/cmd/network-controller