Commit f9000f8b authored by Administrator's avatar Administrator

更新build.yml

parent 265bd543
......@@ -10,24 +10,26 @@ pre_test:
extends: build
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:
extends: build
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
build:
only:
......
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