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

This commit is contained in:
LongYinan authored and GitHub committed 2023-11-01 07:38:15 +00:00
1 parent 0273ea8b00
commit 2d62ec72a7
8 files changed
+31 -27

No files matched your search

+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'