diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 445e199..3df1c3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,7 +62,7 @@ jobs: path: ${{ runner.temp }}/digests/* if-no-files-found: error retention-days: 1 - merge: + push: runs-on: ubuntu-latest needs: - build @@ -101,15 +101,6 @@ jobs: docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ vars.DOCKERHUB_REPO }}@sha256:%s ' *) - - name: Update Docker Hub Description - uses: peter-evans/dockerhub-description@v4 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: ${{ vars.DOCKERHUB_REPO }} - readme-filepath: ./README.md - short-description: "Godbolt Compiler Explorer with amiga-gcc" - - name: Inspect image run: | docker buildx imagetools inspect ${{ vars.DOCKERHUB_REPO }}:${{ steps.meta.outputs.version }} diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml new file mode 100644 index 0000000..b3b291c --- /dev/null +++ b/.github/workflows/document.yml @@ -0,0 +1,24 @@ +name: Update Docker Hub Description +on: + push: + branches: + - main + paths: + - README.md + - .github/workflows/document.yml + workflow_dispatch: +jobs: + description: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Docker Hub Description + uses: peter-evans/dockerhub-description@v4 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + repository: ${{ vars.DOCKERHUB_REPO }} + readme-filepath: ./README.md + short-description: ${{ github.event.repository.description }} + enable-url-completion: true