Browse Source

ci: sync docker hub description with readme

C4illin 8 months ago
parent
commit
f22b61fe4c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      .github/workflows/docker-publish.yml

+ 9 - 0
.github/workflows/docker-publish.yml

@@ -77,3 +77,12 @@ jobs:
           labels: ${{ steps.meta.outputs.labels }}
           labels: ${{ steps.meta.outputs.labels }}
           cache-from: type=gha
           cache-from: type=gha
           cache-to: type=gha,mode=max
           cache-to: type=gha,mode=max
+      
+      # Keep docker hub description in sync with README.md
+      - name: Docker Hub Description
+        if: github.event_name != 'pull_request'
+        uses: peter-evans/dockerhub-description@v4
+        with:
+          username: ${{ env.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+          repository: ${{ env.IMAGE_NAME }}