Skip to content

Commit 48d9a7c

Browse files
flat-botsiyu
authored andcommitted
chore: deploy sg via ci (for dev) (#747)
* add sg ci * remove unuse step # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # Date: Thu Aug 3 16:22:13 2023 +0800 # # On branch sa/add_sg_ci # Changes to be committed: # modified: .gitlab-ci.yml # --------- Co-authored-by: siyu <[email protected]>
1 parent 0967715 commit 48d9a7c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.gitlab-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ stages:
2323
HOST_NAME: $HOST_NAME_CHINA
2424
KUBE_CONFIG: $KUBE_CONFIG_CHINA
2525

26+
.sg:
27+
before_script:
28+
- cp $PROJECT_CONFIG_SG ./helm/files/production.yaml
29+
variables:
30+
HOST_NAME: $HOST_NAME_SG
31+
KUBE_CONFIG: $KUBE_CONFIG_SG
32+
2633
.docker_build: &DOCKER_BUILD
2734
stage: build_image
2835
image: docker:19.03.12
@@ -117,3 +124,10 @@ deploy_prod_cn:
117124
variables:
118125
DOCKER_TAG: $CI_COMMIT_SHA
119126
<<: *PROD
127+
128+
deploy_prod_sg:
129+
<<: *DEPLOY
130+
extends: .sg
131+
variables:
132+
DOCKER_TAG: $CI_COMMIT_SHA
133+
<<: *DEV

0 commit comments

Comments
 (0)