Skip to content

Commit 2071861

Browse files
authored
Merge pull request #16 from pattern-tech/fix/metadata-action
fix: add Metadata extraction step to `docker-image` action
2 parents 5721310 + eb9d94c commit 2071861

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docker-image.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,18 @@ jobs:
3838
envkey_PATTERN_CORE_ENDPOINT: ${{ vars.PATTERN_CORE_ENDPOINT }}
3939
envkey_AUTH_TRUST_HOST: ${{ vars.AUTH_TRUST_HOST }}
4040

41+
- name: Extract Metadata for image
42+
uses: docker/metadata-action@v5
43+
id: meta
44+
with:
45+
images: ghcr.io/pattern-tech/pattern-app
46+
4147
- name: Build and push
4248
uses: docker/build-push-action@v4
4349
with:
4450
context: .
4551
platforms: 'linux/amd64'
4652
push: true
47-
tags: pattern-tech/pattern-app:latest
53+
tags: ${{ steps.meta.outputs.tags }}
4854
cache-from: type=gha
4955
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)