Skip to content

Commit

Permalink
Add workflow to push README to Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed May 5, 2021
1 parent 88d6b7c commit 6034614
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update Docker Hub Description
on:
push:
branches:
- master
paths:
- README.md
- .github/workflows/dockerhub-description.yml
jobs:
dockerHubDescription:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Modify readme for DockerHub
run: |
sed -i '1,2d' README.md
sed -i 's/(LICENSE)/(https:\/\/github.com\/nginxinc\/kubernetes-ingress\/blob\/master\/LICENSE)/' README.md
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: nginx/kubernetes-ingress
short-description: ${{ github.event.repository.description }}

0 comments on commit 6034614

Please sign in to comment.