[workflow] use docker metadata action. move docker hub description to a separated flow.

This commit is contained in:
Shizun Ge
2023-07-02 15:57:21 -07:00
parent 7346a983e8
commit b2a0c3885c
3 changed files with 51 additions and 45 deletions

View File

@@ -0,0 +1,22 @@
name: Update Docker Hub description
on:
release:
types:
- created
workflow_dispatch:
jobs:
publish:
name: Update Docker Hub description
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ github.repository }}
short-description: ${{ github.event.repository.description }}