Skip to content

Commit df64c73

Browse files
authored
Deploy on master or tags (#3419)
Signed-off-by: Chris Marchbanks <[email protected]>
1 parent ed0ba9a commit df64c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test-build-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
174174
deploy_website:
175175
needs: [build, test]
176-
if: github.ref == 'refs/heads/master' && github.repository == 'cortexproject/cortex'
176+
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
177177
runs-on: ubuntu-latest
178178
container:
179179
image: quay.io/cortexproject/build-image:upgrade-build-image-debian-491e60715-WIP
@@ -210,7 +210,7 @@ jobs:
210210

211211
deploy:
212212
needs: [build, test, lint, integration, integration-configs-db]
213-
if: github.ref == 'refs/heads/master' && github.repository == 'cortexproject/cortex'
213+
if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex'
214214
runs-on: ubuntu-latest
215215
container:
216216
image: quay.io/cortexproject/build-image:upgrade-build-image-debian-491e60715-WIP

0 commit comments

Comments
 (0)