Skip to content

Commit

Permalink
try meta again
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinkamp committed Mar 26, 2024
1 parent 3c1cd77 commit 360d3d5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
${{ env.REGISTRY }}/zsteinkamp/${{ env.IMAGE_BASE }}-nginx
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=sha
# This step uses the `docker/build-push-action` action to build the
# image, based on your repository's `Dockerfile`. If the build succeeds,
# it pushes the image to GitHub Packages.
Expand All @@ -63,7 +75,5 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
images: |
${{ env.REGISTRY }}/zsteinkamp/${{ env.IMAGE_BASE }}-nginx
tags: |
type=sha
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 360d3d5

Please sign in to comment.