소스 검색

Automatically update docker hub readme (github action) (#679)

* add new github action : update docker hub readme
he2ss 4 년 전
부모
커밋
ccec56c1a6
1개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. 24 0
      .github/workflows/update_docker_hub_doc.yml

+ 24 - 0
.github/workflows/update_docker_hub_doc.yml

@@ -0,0 +1,24 @@
+name: Update Docker Hub README
+
+on: 
+  push:
+    branches:
+      - master
+    paths:
+      - 'docker/README.md'
+
+jobs:
+  update-docker-hub-readme:
+    runs-on: ubuntu-latest
+    steps:
+      - 
+        name: Check out the repo
+        uses: actions/checkout@v2
+      -
+        name: Update docker hub README
+        uses: ms-jpq/sync-dockerhub-readme@v1
+        with:
+          username: ${{ secrets.DOCKER_USERNAME }}
+          password: ${{ secrets.DOCKER_PASSWORD }}
+          repository: crowdsecurity/crowdsec
+          readme: "./docker/README.md"