diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f575f00..346ebf1a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ stages: - docker-dev - deploy-dev - deploy-test - - deploy-staging + #- deploy-staging - docker-prd - deploy-prd @@ -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/tsc tsc=$TSC_Web_Image_DEV -n $NAMESPACE_DEV - kubectl --kubeconfig ./config set image deployment/tsc-service tsc-service=$TSC_Service_Image_DEV -n $NAMESPACE_DEV @@ -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/tsc tsc=$TSC_Web_Image_DEV -n $NAMESPACE_TEST - kubectl --kubeconfig ./config set image deployment/tsc-service tsc-service=$TSC_Service_Image_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/tsc tsc=$TSC_Web_Image_DEV -n $NAMESPACE_STAGING - - kubectl --kubeconfig ./config set image deployment/tsc-service tsc-service=$TSC_Service_Image_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/tsc tsc=$TSC_Web_Image_DEV -n $NAMESPACE_STAGING +# - kubectl --kubeconfig ./config set image deployment/tsc-service tsc-service=$TSC_Service_Image_DEV -n $NAMESPACE_STAGING +# retry: 2 +# when: manual docker-prd: stage: docker-prd