Skip to content

Commit

Permalink
Update docker-image.yml (#51)
Browse files Browse the repository at this point in the history
- Remove `vars.IMAGE_NAMESPACE`
- Add job-summary
  • Loading branch information
svengo authored Oct 2, 2023
1 parent 84b8331 commit 3a297eb
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ vars.IMAGE_NAMESPACE }}/${{ vars.IMAGE_NAME }}
repository: ${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
short-description: ${{ github.event.repository.description }}
-
name: Build Docker meta data
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.IMAGE_NAMESPACE }}/${{ vars.IMAGE_NAME }}
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
flavor: |
latest=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
tags: |
Expand All @@ -56,4 +56,20 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

-
name: Generate job summary
id: job-summary
run: |
{
IFS=$'\n'
echo "### Docker metadata"
echo "#### Docker Labels"
echo '```'
for LINE in ${DOCKER_METADATA_OUTPUT_LABELS}; do echo "${LINE}"; done
echo '```'
echo ""
echo "#### Docker tags"
echo '```'
for LINE in ${DOCKER_METADATA_OUTPUT_TAGS}; do echo "${LINE}"; done
echo '```'
} >> $GITHUB_STEP_SUMMARY

0 comments on commit 3a297eb

Please sign in to comment.