From 8bdaf9249d03a5cd3e05a55210c9fbe2c75720c0 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Wed, 21 Feb 2024 22:56:35 +0530 Subject: [PATCH] only run docker image build and push on new version release --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c2fef9..9a4c5ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: build-and-push-docker-cpu: needs: [run-tests, check-code-format] runs-on: ubuntu-22.04 - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - uses: actions/checkout@v2 @@ -103,7 +103,7 @@ jobs: needs: [run-tests, check-code-format, build-and-push-docker-cpu] timeout-minutes: 20 runs-on: ubuntu-22.04 - if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') steps: - uses: actions/checkout@v2