Commit f9000f8b authored by Administrator's avatar Administrator

更新build.yml

parent 265bd543
...@@ -10,24 +10,26 @@ pre_test: ...@@ -10,24 +10,26 @@ pre_test:
extends: build extends: build
only: only:
- test - test
variables:
k8sappname: "${appname}-test"
image: 192.168.123.7:5000/${appname}:test
springprofile: ''
script: script:
- k8sappname="${appname}-test"
- image=192.168.123.7:5000/${appname}:test
- springprofile=''
- echo ${k8sappname}${image}${springprofile} - echo ${k8sappname}${image}${springprofile}
pre_prod: pre_prod:
extends: build extends: build
only: only:
- master - master
variables:
k8sappname: "${appname}-prod"
image: 192.168.123.7:5000/${appname}:prod
springprofile: '--spring.profiles.active=prod'
script: script:
- k8sappname="${appname}-prod"
- image=192.168.123.7:5000/${appname}:prod
- springprofile='--spring.profiles.active=prod'
- echo ${k8sappname}${image}${springprofile} - echo ${k8sappname}${image}${springprofile}
#定义 job #定义 job
build: build:
only: 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