Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Somck authored Nov 9, 2023
1 parent 90f97ee commit 84c87f9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ stages:
- deploy-dev
- deploy-test
- docker-prd
- deploy-staging
#- deploy-staging
- deploy-prd

variables:
Expand Down Expand Up @@ -44,7 +44,7 @@ deploy-dev:
only:
- main
script:
- echo $KUBE_CONFIG_MASA_YDY | base64 -d > ./config
- echo $KUBE_CONFIG_NEW_YDY | base64 -d > ./config
- echo $CI_PIPELINE_ID
- kubectl --kubeconfig ./config set image deployment/dcc dcc=$NEW_IMAGE_DCC_UI_DEV -n $NAMESPACE_DEV
- kubectl --kubeconfig ./config set image deployment/dcc-service dcc-service=$NEW_IMAGE_DCC_DEV -n $NAMESPACE_DEV
Expand All @@ -56,25 +56,25 @@ deploy-test:
only:
- main
script:
- echo $KUBE_CONFIG_MASA_YDY | base64 -d > ./config
- echo $KUBE_CONFIG_NEW_YDY | base64 -d > ./config
- echo $CI_PIPELINE_ID
- kubectl --kubeconfig ./config set image deployment/dcc dcc=$NEW_IMAGE_DCC_UI_DEV -n $NAMESPACE_TEST
- kubectl --kubeconfig ./config set image deployment/dcc-service dcc-service=$NEW_IMAGE_DCC_DEV -n $NAMESPACE_TEST
retry: 2
when: manual

deploy-staging:
stage: deploy-staging
image: registry.cn-hangzhou.aliyuncs.com/masa/library:kubectl-shell-v1.21.1
only:
- main
script:
- echo $KUBE_CONFIG_MASA_YDY | base64 -d > ./config
- echo $CI_PIPELINE_ID
- kubectl --kubeconfig ./config set image deployment/dcc dcc=$NEW_IMAGE_DCC_UI_DEV -n $NAMESPACE_STAGING
- kubectl --kubeconfig ./config set image deployment/dcc-service dcc-service=$NEW_IMAGE_DCC_DEV -n $NAMESPACE_STAGING
retry: 2
when: manual
# deploy-staging:
# stage: deploy-staging
# image: registry.cn-hangzhou.aliyuncs.com/masa/library:kubectl-shell-v1.21.1
# only:
# - main
# script:
# - echo $KUBE_CONFIG_NEW_YDY | base64 -d > ./config
# - echo $CI_PIPELINE_ID
# - kubectl --kubeconfig ./config set image deployment/dcc dcc=$NEW_IMAGE_DCC_UI_DEV -n $NAMESPACE_STAGING
# - kubectl --kubeconfig ./config set image deployment/dcc-service dcc-service=$NEW_IMAGE_DCC_DEV -n $NAMESPACE_STAGING
# retry: 2
# when: manual

docker-prd:
stage: docker-prd
Expand Down

0 comments on commit 84c87f9

Please sign in to comment.