Skip to content

Commit

Permalink
Merge pull request #145 from codecov/fix/prod-tag-usage
Browse files Browse the repository at this point in the history
Use release create for prod
  • Loading branch information
trent-codecov committed Oct 13, 2023
2 parents d7044b1 + ae9cb1a commit 0b2f919
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Worker CI

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

0 comments on commit 0b2f919

Please sign in to comment.