From 1ccac012cff5c4ce7bcf4de854515116a872b51c Mon Sep 17 00:00:00 2001 From: Sven Trieflinger Date: Thu, 27 Jul 2023 14:30:22 +0200 Subject: [PATCH] fix(service): generate both tags and lables for ko correctly (#65) Signed-off-by: Sven Trieflinger --- .github/workflows/service.publish.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/service.publish.yaml b/.github/workflows/service.publish.yaml index 8f5f7a5..4d63ae1 100644 --- a/.github/workflows/service.publish.yaml +++ b/.github/workflows/service.publish.yaml @@ -68,10 +68,15 @@ jobs: uses: imjasonh/setup-ko@v0.6 - name: Publish Docker Images run: | + # Generate tags flag + readarray -t tags < <( echo "${{ steps.meta.outputs.tags }}" ) + printf -v joined_tags "%s," "${tags[@]}" + # Generate label flags readarray -t labels < <( echo "${{ steps.meta.outputs.labels }}" ) printf -v label_flags -- "--image-label=%s " "${labels[@]}" ko publish -B \ - --tags=${{ steps.meta.outputs.tags }} \ + --tags=${joined_tags%,} \ + ${label_flags} github.com/carbynestack/ephemeral/cmd/discovery \ github.com/carbynestack/ephemeral/cmd/ephemeral \ github.com/carbynestack/ephemeral/cmd/network-controller