From 3e4e45cd6e433777a093567843ac6d1a091ecd1b Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Fri, 20 Sep 2024 11:44:29 +0200 Subject: [PATCH] fix(ci): triggering action upon tags (#586) Signed-off-by: Dario Tranchitella --- .github/workflows/ko-build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ko-build.yml b/.github/workflows/ko-build.yml index f6dabbcc..a6ff312c 100644 --- a/.github/workflows/ko-build.yml +++ b/.github/workflows/ko-build.yml @@ -2,6 +2,9 @@ name: Container image build on: push: + tags: + - edge-* + - v* branches: - master @@ -22,7 +25,7 @@ jobs: - name: "ko: login to docker.io container registry" run: ./bin/ko login docker.io -u ${{ secrets.DOCKER_IO_USERNAME }} -p ${{ secrets.DOCKER_IO_TOKEN }} - name: "ko: build and push tag" - run: make VERSION=${{ github.ref_name }} KO_LOCAL=false KO_PUSH=true build - if: startsWith(github.event.ref, 'v') || startsWith(github.event.ref, 'edge') + run: make VERSION=${{ github.ref }} KO_LOCAL=false KO_PUSH=true build + if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/edge-') - name: "ko: build and push latest" run: make VERSION=latest KO_LOCAL=false KO_PUSH=true build