From 3e333eb6146bb1956a2f2287de58630f94960d12 Mon Sep 17 00:00:00 2001 From: Parul Date: Fri, 2 Feb 2024 15:35:31 -0800 Subject: [PATCH] fix version build --- .github/workflows/docker-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8ba09ea..6371531 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -21,6 +21,12 @@ jobs: tags: | # set latest tag for default branch type=raw,value=latest,enable={{is_default_branch}} + # output 0.1.2 + type=semver,pattern={{version}} + # output 0.1 + type=semver,pattern={{major}}.{{minor}} + # disabled if major zero + type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }} - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx