Commit 4e0434b9 authored by Administrator's avatar Administrator

更新build.yml

parent 4df194a0
......@@ -12,20 +12,22 @@ pre_test:
stage: pre_test
only:
- test
variables:
k8sappname: "${appname}-test"
image: 192.168.123.7:5000/${appname}:test
springprofile: ''
script:
- k8sappname="${appname}-test"
- image=192.168.123.7:5000/${appname}:test
- springprofile=''
- echo ${k8sappname}${image}${springprofile}
pre_prod:
stage: pre_prod
only:
- master
variables:
k8sappname: "${appname}-prod"
image: 192.168.123.7:5000/${appname}:prod
springprofile: '--spring.profiles.active=prod'
script:
- k8sappname="${appname}-prod"
- image=192.168.123.7:5000/${appname}:prod
- springprofile='--spring.profiles.active=prod'
- echo ${k8sappname}${image}${springprofile}
# 定义 job
......
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