ci: add workflow to update dockerhub description automatically

This commit is contained in:
Florian Dörsch
2024-08-16 11:01:37 +02:00
parent 3b09d94284
commit fd79b23057

View File

@@ -0,0 +1,30 @@
# https://github.com/peter-evans/dockerhub-description
name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- README.md
- .github/workflows/dockerhub-description.yml
env:
IMAGE_NAME: paessler/multi-platform-probe
jobs:
update-description:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
repository: ${{ env.IMAGE_NAME }}
short-description: ${{ github.event.repository.description }}
enable-url-completion: true