Skip to content

Commit

Permalink
fix(service): generate both tags and lables for ko correctly (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Trieflinger <[email protected]>
  • Loading branch information
strieflin authored Jul 27, 2023
1 parent 714745e commit 1ccac01
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/service.publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ jobs:
uses: imjasonh/[email protected]
- 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

0 comments on commit 1ccac01

Please sign in to comment.