Add step to document on Docker Hub

This commit is contained in:
Matt Harlum 2025-06-05 20:39:28 +12:00 committed by Matt Harlum
parent 1cdceef274
commit 4a0be33f37
2 changed files with 25 additions and 10 deletions

View File

@ -62,7 +62,7 @@ jobs:
path: ${{ runner.temp }}/digests/* path: ${{ runner.temp }}/digests/*
if-no-files-found: error if-no-files-found: error
retention-days: 1 retention-days: 1
merge: push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- build - build
@ -101,15 +101,6 @@ jobs:
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ vars.DOCKERHUB_REPO }}@sha256:%s ' *) $(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 - name: Inspect image
run: | run: |
docker buildx imagetools inspect ${{ vars.DOCKERHUB_REPO }}:${{ steps.meta.outputs.version }} docker buildx imagetools inspect ${{ vars.DOCKERHUB_REPO }}:${{ steps.meta.outputs.version }}

24
.github/workflows/document.yml vendored Normal file
View File

@ -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