From a5632a6a2409f484a11d8cd9d0b5445db94fc7ef Mon Sep 17 00:00:00 2001 From: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com> Date: Fri, 3 Feb 2023 12:30:01 +0100 Subject: [PATCH] add semver tags --- .github/workflows/build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 09b5b5f2..d89f0982 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,6 +5,8 @@ on: push: branches: - 'main' + tags: + - 'v*' pull_request: branches: - 'main' @@ -43,6 +45,8 @@ jobs: ghcr.io/huggingface/text-generation-inference registry.internal.huggingface.tech/api-inference/community/text-generation-inference tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }} - name: Build and push Docker image