Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit 8963aad

Browse files
authored
Add workflow to push README to Docker Hub (#108)
1 parent 32fd51c commit 8963aad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update Docker Hub Description
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- README.md
8+
- .github/workflows/dockerhub-description.yml
9+
jobs:
10+
dockerHubDescription:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Modify readme for DockerHub
16+
run: |
17+
sed -i '1,2d' README.md
18+
19+
- name: Docker Hub Description
20+
uses: peter-evans/dockerhub-description@v2
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
repository: nginx/nginx-ingress-operator
25+
short-description: ${{ github.event.repository.description }}

0 commit comments

Comments
 (0)