From 83eec7073a453a0da8b94e4f3616a12dad324829 Mon Sep 17 00:00:00 2001 From: Sergii Mikhtoniuk Date: Thu, 8 Feb 2024 20:14:00 -0800 Subject: [PATCH] Customize image tags --- .github/workflows/release.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 583b0f8..33cbc36 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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 @@ -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