From b1977ec5f2d8e162517577ca91b591b1a85cf1e6 Mon Sep 17 00:00:00 2001 From: Jan Kiesewetter Date: Mon, 10 Jul 2023 09:33:35 +0200 Subject: [PATCH] [TASK] Split workflows build and update description --- .github/workflows/ci.yml | 10 --------- .github/workflows/dockerhub-description.yml | 25 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/dockerhub-description.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 144bcdf..8ddf8a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.yml new file mode 100644 index 0000000..2bf6d1f --- /dev/null +++ b/.github/workflows/dockerhub-description.yml @@ -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 \ No newline at end of file