Skip to content

Commit

Permalink
metadata stuff redone
Browse files Browse the repository at this point in the history
  • Loading branch information
sotojn committed Sep 5, 2023
1 parent c40486a commit ba7c359
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- "main"
- "*"
tags:
- 'v*'

env:
REGISTRY_IMAGE: sotojn6/node-docker
Expand All @@ -28,6 +30,11 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -45,6 +52,7 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
-
name: Export digest
Expand Down

0 comments on commit ba7c359

Please sign in to comment.