Skip to content

Commit

Permalink
Customize image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Feb 9, 2024
1 parent 3774b6c commit 83eec70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ on:
- v[0-9]+.[0-9]+.[0-9]+*
env:
IMAGE_BASE_NAME: ghcr.io/kamu-data/engine-datafusion
# See: https://github.com/docker/metadata-action#tags-input
IMAGE_TAGS: |
type=raw,value=latest
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
IMAGE_LABELS: |
org.opencontainers.image.vendor=Kamu Data Inc.
jobs:
Expand Down Expand Up @@ -32,6 +38,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_BASE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ env.IMAGE_LABELS }}

- name: Set up QEMU
Expand Down Expand Up @@ -111,6 +118,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_BASE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ env.IMAGE_LABELS }}

- name: Log in to GitHub Container Registry
Expand Down

0 comments on commit 83eec70

Please sign in to comment.