From ccec56c1a6d1710c596033c8d4dad260e0bd126f Mon Sep 17 00:00:00 2001 From: he2ss Date: Fri, 12 Mar 2021 10:29:57 +0100 Subject: [PATCH] Automatically update docker hub readme (github action) (#679) * add new github action : update docker hub readme --- .github/workflows/update_docker_hub_doc.yml | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update_docker_hub_doc.yml diff --git a/.github/workflows/update_docker_hub_doc.yml b/.github/workflows/update_docker_hub_doc.yml new file mode 100644 index 000000000..8e5d1a31f --- /dev/null +++ b/.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" \ No newline at end of file