Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitlab-ci.yml #633

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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