Skip to content

Commit

Permalink
Merge pull request #174 from codecov/trent/fix-deploy
Browse files Browse the repository at this point in the history
Use push of tag
  • Loading branch information
trent-codecov committed Nov 6, 2023
2 parents 931ebab + 0265d0e commit 5b7f0bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Worker CI

on:
release:
types:
- created
push:
tags:
- prod-*
Expand Down Expand Up @@ -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/[email protected]
secrets: inherit
with:
Expand All @@ -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/[email protected]
with:
push_rolling: true
Expand Down

0 comments on commit 5b7f0bb

Please sign in to comment.