Skip to content

Commit

Permalink
[TASK] Split workflows build and update description
Browse files Browse the repository at this point in the history
  • Loading branch information
t3easy committed Jul 10, 2023
1 parent 13782fa commit b1977ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,6 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Checkout to update repo description
uses: actions/checkout@v3

- name: Update repo description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.IMAGE_NAME }}

- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
Expand Down
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:
- main
paths:
- README.md
- .github/workflows/dockerhub-description.yml

jobs:
dockerHubDescription:
runs-on: ubuntu-latest
env:
IMAGE_NAME: t3easy/php
steps:
- uses: actions/checkout@v3

- name: Docker Hub description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.IMAGE_NAME }}
short-description: ${{ github.event.repository.description }}
enable-url-completion: true

0 comments on commit b1977ec

Please sign in to comment.