Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kaznak committed Dec 14, 2023
1 parent 8571516 commit bc2b7f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/matrix-to-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
# cat \
# cloudnativepg-configured/16/strategy.json \
# cloudnativepg-configured/16/strategy.json \
# | .github/generate-strategy.sh \
# | .github/generate-strategy.sh myrepository/ \
# | jq -c '.matrix.include|.[]' \
# | .github/matrix-to-tag.sh
#

set -eu

repository=$1
repository_with_trailing_slash=$1

jq -r '
.imgname as $name |
.tags | .[] | . as $tag |
"'$repository'/\($name):\($tag)"' |
"'$repository_with_trailing_slash'\($name):\($tag)"' |
tr '\n' ',' |
sed -e 's/^/TAGS=/' -e 's/,$/\n/'
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Generate and set Tags
run: |
bash .github/matrix-to-tag.sh $IMAGE_REPOSITORY_DIR <<< "${{ toJson(matrix) }}" \
bash .github/matrix-to-tag.sh ${IMAGE_REPOSITORY_DIR}/ <<< "${{ toJson(matrix) }}" \
| tee -a $GITHUB_ENV
- name: Set up Docker Buildx
Expand Down

0 comments on commit bc2b7f7

Please sign in to comment.