Skip to content

Commit

Permalink
Use the docker/metadata-action Action to generate data
Browse files Browse the repository at this point in the history
Currently just seeing what output we get for images, labels, and tags
using the provided options.
  • Loading branch information
mcdonnnj committed Jan 8, 2025
1 parent 0d48ebd commit c793e96
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,31 @@ jobs:
echo "source_version=$(./bump-version show)" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo tags=${TAGS}
- id: generate-metadata
uses: docker/metadta-action@v5
with:
images: |
${{ env.IMAGE_NAME }}
ghcr.io/${{ env.IMAGE_NAME }}
tags: |
type=edge,branch=develop
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=schedule
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
type=sha
- id: show-metadata
run: |
echo "### docker/metadata-action output" >> $GITHUB_STEP_SUMMARY
echo "#### Images" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.generate-metadata.outputs.images }}" >> $GITHUB_STEP_SUMMARY
echo "#### Labels" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.generate-metadata.outputs.labels }}" >> $GITHUB_STEP_SUMMARY
echo "#### Tags" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.generate-metadata.outputs.tags }}" >> $GITHUB_STEP_SUMMARY
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
if: github.event.inputs.remote-shell == 'true' || env.RUN_TMATE
Expand Down

0 comments on commit c793e96

Please sign in to comment.