Skip to content

Commit

Permalink
Docs (ci): Add job for updating docker hub repository description and…
Browse files Browse the repository at this point in the history
… `README.md`
  • Loading branch information
joeltimothyoh committed Jan 26, 2023
1 parent 0657f88 commit 9fc621e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,3 +263,20 @@ jobs:
- name: Clean-up
run: docker logout
if: always()

dockerhub-description:
runs-on: ubuntu-20.04
needs: [alpine, ubuntu]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: peter-evans/dockerhub-description@v3
with:
username: ${{ vars.DOCKERHUB_REGISTRY_USER }}
password: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}
repository: ${{ vars.DOCKERHUB_REGISTRY_USER }}/ansible
short-description: ${{ github.event.repository.description }}
readme-filepath: README.md
env:
DOCKERHUB_REGISTRY_USER: ${{ vars.DOCKERHUB_REGISTRY_USER }}
DOCKERHUB_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_REGISTRY_PASSWORD }}

0 comments on commit 9fc621e

Please sign in to comment.