Browse Source

ci: Docker Hub description update

Nicolas Duchon 1 year ago
parent
commit
980470377a
1 changed files with 27 additions and 0 deletions
  1. 27 0
      .github/workflows/dockerhub-description.yml

+ 27 - 0
.github/workflows/dockerhub-description.yml

@@ -0,0 +1,27 @@
+name: Update Docker Hub Description
+
+on:
+  push:
+    branches:
+      - main
+    paths:
+      - README.md
+      - .github/workflows/dockerhub-description.yml
+
+jobs:
+  dockerHubDescription:
+    name: Update Docker Hub Description
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Docker Hub Description
+        uses: peter-evans/dockerhub-description@v3
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN_RWD }}
+          repository: nginxproxy/nginx-proxy
+          short-description: ${{ github.event.repository.description }}
+          enable-url-completion: true