From ae9cb1a6fb5573873fa7c8345d2b07fc2a2a3aa4 Mon Sep 17 00:00:00 2001 From: trent-codecov Date: Fri, 13 Oct 2023 04:43:22 -0400 Subject: [PATCH] Use release create for prod --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c36ba783..d861b4b75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,9 @@ name: Worker CI on: + release: + types: + - created push: tags: - prod-* @@ -77,7 +80,7 @@ jobs: production: name: Push Production Image needs: [ build, test ] - if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/production') && github.repository_owner == 'codecov' }} + if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/prod') && github.repository_owner == 'codecov' }} uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.3 secrets: inherit with: @@ -88,7 +91,7 @@ jobs: name: Push Self Hosted Image needs: [ build-self-hosted, test ] secrets: inherit - if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/production') && github.repository_owner == 'codecov' }} + if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/prod') && github.repository_owner == 'codecov' }} uses: codecov/gha-workflows/.github/workflows/self-hosted.yml@v1.2.3 with: push_rolling: true