From 114e3ffc242c6a7522b63d8bcda7640c1c423aeb Mon Sep 17 00:00:00 2001 From: schuer Date: Sun, 24 Dec 2023 11:14:53 +0100 Subject: [PATCH] ci: publish to docker hub --- .github/workflows/publish.yml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a3d2b2c..bc8ff5a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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" @@ -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 @@ -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