From e193b4c38d5c5f6b92a8ac28e39a128520cf32bd Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 9 Jul 2025 17:19:00 -0400 Subject: [PATCH] fix(docker): move update dockerhub readme to separate job --- .github/workflows/__call-docker.yml | 33 +++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/__call-docker.yml b/.github/workflows/__call-docker.yml index a30206cb..d6f3605a 100644 --- a/.github/workflows/__call-docker.yml +++ b/.github/workflows/__call-docker.yml @@ -105,8 +105,16 @@ jobs: echo $matrix echo $matrix | jq . echo "matrix=$matrix" >> $GITHUB_OUTPUT + - name: Additional Outputs + id: additional_outputs + run: | + # set outputs for later jobs + REPOSITORY=${{ github.repository }} + BASE_TAG=$(echo $REPOSITORY | tr '[:upper:]' '[:lower:]') + echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT outputs: + base_tag: ${{ steps.additional_outputs.outputs.base_tag }} dockerfiles: ${{ steps.find.outputs.dockerfiles }} matrix: ${{ steps.find.outputs.matrix }} @@ -167,8 +175,7 @@ jobs: fi # setup the tags - REPOSITORY=${{ github.repository }} - BASE_TAG=$(echo $REPOSITORY | tr '[:upper:]' '[:lower:]') + BASE_TAG="${{ needs.check_dockerfiles.outputs.base_tag }}" TAGS="${BASE_TAG}:${COMMIT:0:7}${{ matrix.tag }},ghcr.io/${BASE_TAG}:${COMMIT:0:7}${{ matrix.tag }}" @@ -313,14 +320,28 @@ jobs: path: artifacts/ if-no-files-found: error + release: + name: Release + if: > + github.event_name == 'push' && + github.ref == 'refs/heads/master' + runs-on: ubuntu-latest + needs: + - check_dockerfiles + - docker + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + sparse-checkout: | + DOCKER_README.md + sparse-checkout-cone-mode: false + - name: Update Docker Hub Description - if: > - github.event_name == 'push' && - github.ref == 'refs/heads/master' uses: peter-evans/dockerhub-description@v4 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} # token is not currently supported - repository: ${{ env.BASE_TAG }} + repository: ${{ needs.check_dockerfiles.outputs.base_tag }} short-description: ${{ github.event.repository.description }} readme-filepath: ./DOCKER_README.md