Skip to content

Commit

Permalink
Merge pull request #13 from Johnny-Knighten/fix/dockerhub-docs-only-u…
Browse files Browse the repository at this point in the history
…pdated-on-main-release

cicd: made dockerhub descrip update only happen on pushes to main branch
  • Loading branch information
Johnny-Knighten authored Nov 24, 2023
2 parents c792217 + 0f5911a commit 46cab80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,17 @@ jobs:
echo "The Following Images Would Have Been Pushed:"
echo "${{ steps.meta-dry-run.outputs.tags }}"
- name: Update DockerHub description
if: ${{ !env.ACT }}
- name: Update DockerHub Description
if: ${{ !env.ACT && github.ref == 'refs/heads/main' }}
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: johnnyknighten/ark-sa-server
short-description: ${{ github.event.repository.description }}
enable-url-completion: true

- name: Update DockerHub Description (DRY RUN)
if: ${{ env.ACT && github.ref == 'refs/heads/main' }}
run: |
echo "DRY RUN - Pushing Dockerhub Description Update"

0 comments on commit 46cab80

Please sign in to comment.