Skip to content

Commit

Permalink
ci: publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
schuer committed Dec 23, 2023
1 parent 27ea2b8 commit e238d9b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@ jobs:
persist-credentials: false

- name: Create tag list for image
# Create taglist
# We make use of yp (https://mikefarah.gitbook.io/yq/) to create a JSON array from
# We make use of yp (https://mikefarah.gitbook.io/yq/) to create a taglist from
# the image’s `tags.yml` file, where all given tags (like `5-stable`, `5-edge`) are
# combined with all image registries (like ghcr, Docker Hub).
run: |
taglist=$(yq 'map(
(
"ghcr.io/friendsofredaxo/redaxo"
)
+ ":" + .[]) | to_json(0)' ./images/${{ matrix.image }}/tags.yml)
+ ":" + .[]) | to_csv' ./images/${{ matrix.image }}/tags.yml)
echo "$taglist"
echo "TAGLIST=$taglist" >> $GITHUB_ENV
Expand Down Expand Up @@ -105,7 +104,7 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
tags: ${{ fromJson(env.TAGLIST) }}
tags: ${{ env.TAGLIST }}

# - name: Update repo description
# # https://github.com/marketplace/actions/docker-hub-description
Expand Down

0 comments on commit e238d9b

Please sign in to comment.