ci: only deploy in the canary version

This commit is contained in:
Alex Yang
2023-08-29 05:27:14 -05:00
parent 06cec822f0
commit 0ded20fcb7

View File

@@ -4,6 +4,8 @@ on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'
workflow_dispatch:
inputs:
flavor:
@@ -169,6 +171,7 @@ jobs:
deploy:
name: Deploy to cluster
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }}
environment: ${{ github.event.inputs.flavor }}
permissions:
contents: 'write'