Commit c012d8f5 by 据说甜蜜呢

修改staging-major_job

parent d6a992d2
stages: stages:
- build - build
- staging-release-major - staging-release-major
- prod-release-major
build_job: build_job:
stage: build stage: build
...@@ -12,27 +11,24 @@ build_job: ...@@ -12,27 +11,24 @@ build_job:
tags: tags:
- local - local
major-staging_job: staging-major_job:
stage: major-staging stage: staging-release-major
script: script:
# Continuous integration
- export RegistryHost='registry.geekbuying.com:8100' - export RegistryHost='registry.geekbuying.com:8100'
- chmod +x ./build/CI.light.sh - export Environment='Staging'
- ./build/CI.light.sh - export K8sApiServer='https://172.24.83.222:6443'
# Continuous delivery
# create config information # 001 Continuous integration image to registry.
- export isCreateNamespace='1' - bash ./devops/PipeLines/CI.sh
- export environment='Staging'
- export baseUrl='https://172.24.83.222:6443' # 002 Create config information to k8s's configmap.
- export accessToken='' - bash ./devops/PipeLines/Creation/CreateConfig.sh
- chmod +x ./build/CreateConfigMaps.sh
- ./build/CreateConfigMaps.sh # 003 Release major to k8s's cluster.
# create application component - bash ./devops/PipeLines/Creation/ReleaseMajor.sh
- export kongServiceBaseUrl='http://127.0.0.1:81/services'
- export kongRouteBaseUrl='http://127.0.0.1:81/routes' # 004 Create gateway route.
- export kongRouteDomain='staging-api.geekbuy.cn' - bash ./devops/PipeLines/Creation/Gateways/Kong/CreateGatewayRoute.sh
- chmod +x ./build/GrayRelease.sh
- ./build/GrayRelease.sh
only: only:
- rel/major - rel/major
tags: tags:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment