Skip to content

Commit

Permalink
ci: use dockerhub-description action
Browse files Browse the repository at this point in the history
resolves #34
  • Loading branch information
kelly-sovacool committed Oct 29, 2024
1 parent ffe500a commit 8042ec9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-docker-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
echo "Dockerfile source: https://github.com/${{ github.repository }}/blob/${{ github.sha }}/${{ github.event.inputs.dockerfile }}\n" >> tmp_README.md
- name: Build and push
uses: docker/build-push-action@v4
id: build-and-push
with:
context: ${{ steps.vars.outputs.CONTEXT }}
file: ${{ github.event.inputs.dockerfile }}
Expand All @@ -62,11 +63,11 @@ jobs:
BUILD_DATE=${{ steps.vars.outputs.DATE }}
BUILD_TAG=${{ github.event.inputs.version }}
REPONAME=${{ github.event.inputs.image_name }}
# - name: Update Docker Hub Description
# if: ${{ github.event.inputs.push == 'true' }}
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# repository: ${{ steps.metadata.outputs['dockerhub_namespace'] }}/${{ steps.metadata.outputs['image_name'] }}
# readme-filepath: tmp_README.md
- name: Update Docker Hub Description
if: ${{ (github.event.inputs.push == 'true') && (steps.build-and-push.outcome == 'success') }}
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ steps.metadata.outputs['dockerhub_namespace'] }}/${{ steps.metadata.outputs['image_name'] }}
readme-filepath: tmp_README.md
16 changes: 8 additions & 8 deletions .github/workflows/build-docker-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ jobs:
BUILD_DATE=${{ steps.vars.outputs.DATE }}
BUILD_TAG=${{ steps.metadata.outputs['version'] }}
REPONAME=${{ steps.metadata.outputs['image_name'] }}
# - name: Update Docker Hub Description
# if: ${{ github.event.inputs.push == 'true' }}
# uses: peter-evans/dockerhub-description@v4
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# repository: ${{ steps.metadata.outputs['dockerhub_namespace'] }}/${{ steps.metadata.outputs['image_name'] }}
# readme-filepath: tmp_README.md
- name: Update Docker Hub Description
if: ${{ (github.event.inputs.push == 'true') && (steps.build-and-push.outcome == 'success') }}
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ steps.metadata.outputs['dockerhub_namespace'] }}/${{ steps.metadata.outputs['image_name'] }}
readme-filepath: tmp_README.md

0 comments on commit 8042ec9

Please sign in to comment.