Skip to content

Commit 52e4e2d

Browse files
authored
Add Docker Hub README and description sync to workflow (#10)
1 parent 5b9ed76 commit 52e4e2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,12 @@ jobs:
7171
${{ env.REGISTRY }}/${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
7272
cache-from: type=gha
7373
cache-to: type=gha,mode=max
74+
75+
- name: Update Docker Hub description + short desc
76+
uses: peter-evans/dockerhub-description@v3
77+
with:
78+
username: ${{ secrets.DOCKERHUB_USERNAME }}
79+
password: ${{ secrets.DOCKERHUB_TOKEN }}
80+
repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}
81+
readme-filepath: ./README.md
82+
short-description: ${{ github.event.repository.description || '' }}

0 commit comments

Comments
 (0)