ci: dynamic setup server deploy environment by release tag (#4790)

This commit is contained in:
LongYinan
2023-11-01 15:38:15 +08:00
committed by GitHub
parent 0273ea8b00
commit 2d62ec72a7
8 changed files with 31 additions and 27 deletions
+1 -6
View File
@@ -1,11 +1,6 @@
name: Deploy
on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+-canary.[0-9]+'
workflow_dispatch:
inputs:
flavor:
@@ -200,7 +195,7 @@ jobs:
deploy:
name: Deploy to cluster
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }}
if: ${{ github.event_name == 'workflow_dispatch' }}
environment: ${{ github.event.inputs.flavor }}
permissions:
contents: 'write'