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 97543ff
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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,5d' README.md
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: nginx/kubernetes-ingress
short-description: ${{ github.event.repository.description }}

0 comments on commit 97543ff

Please sign in to comment.