Skip to content

Commit

Permalink
ci: publish to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
schuer committed Dec 24, 2023
1 parent 96f98fe commit 114e3ff
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
run: |
taglist=$(yq 'map(
(
"ghcr.io/friendsofredaxo/redaxo"
"friendsofredaxo/redaxo",
"ghcr.io/friendsofredaxo/redaxo"
)
+ ":" + .[]) | to_csv' ./images/${{ matrix.image }}/tags.yml)
echo "$taglist"
Expand All @@ -81,12 +82,12 @@ jobs:
# https://github.com/marketplace/actions/docker-setup-buildx
uses: docker/setup-buildx-action@v3

# - name: Login to Docker Hub
# # https://github.com/marketplace/actions/docker-login
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Docker Hub
# https://github.com/marketplace/actions/docker-login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
# https://github.com/marketplace/actions/docker-login
Expand All @@ -106,15 +107,15 @@ jobs:
provenance: false
tags: ${{ env.TAGLIST }}

# - name: Update repo description
# # https://github.com/marketplace/actions/docker-hub-description
# uses: peter-evans/dockerhub-description@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# repository: ${{ github.repository }}
# short-description: ${{ github.event.repository.description }}
# enable-url-completion: true
- name: Update repo description
# https://github.com/marketplace/actions/docker-hub-description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ github.repository }}
short-description: ${{ github.event.repository.description }}
enable-url-completion: true

- name: Delete untagged containers from GitHub Container Registry
# https://github.com/marketplace/actions/delete-untagged-ghcr
Expand Down

0 comments on commit 114e3ff

Please sign in to comment.