From f3ffef58ec9cb2fcf21f662b9b31376494ca3152 Mon Sep 17 00:00:00 2001 From: FedotCompot Date: Fri, 4 Apr 2025 17:00:46 +0000 Subject: [PATCH] feat: stable tag fixes #483 Creates an image with stable tag if the tag is vX.X.X without alpha/beta etc... --- .github/workflows/ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9bdbfd3d2..15f4cf796 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -165,6 +165,19 @@ jobs: PUSH: "true" run: | make image-omni IMAGE_TAG=latest + - name: Check if tag is stable + id: check-stable-tag + run: | + if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "match=true" >> $GITHUB_OUTPUT + fi + - name: push-omni-stable + if: steps.check-stable-tag.outputs.match == 'true' + env: + PLATFORM: linux/amd64,linux/arm64 + PUSH: "true" + run: | + make image-omni IMAGE_TAG=stable - name: omnictl run: | make omnictl