diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4131e4e3..b44a73c3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: Worker CI on: - release: - types: - - created push: tags: - prod-* @@ -80,7 +77,7 @@ jobs: production: name: Push Production Image needs: [ build, test ] - if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/prod') && github.repository_owner == 'codecov' }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/prod') && github.repository_owner == 'codecov' }} uses: codecov/gha-workflows/.github/workflows/push-env.yml@v1.2.5 secrets: inherit with: @@ -91,7 +88,7 @@ jobs: name: Push Self Hosted Image needs: [ build-self-hosted, test ] secrets: inherit - if: ${{ github.event_name == 'release' && startsWith(github.ref, 'refs/tags/prod') && github.repository_owner == 'codecov' }} + if: ${{ github.event_name == 'push' && 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