Enable automatic deployment
This commit is contained in:
parent
5786f89d41
commit
63b10ace52
3 changed files with 4 additions and 6 deletions
|
@ -226,7 +226,7 @@ pre {
|
||||||
|
|
||||||
<section class='container'>
|
<section class='container'>
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1>Welcome to your Ruby application on OpenShift (version 7)</h1>
|
<h1>Welcome to your Ruby application on OpenShift (version 8)</h1>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ objects:
|
||||||
triggers:
|
triggers:
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
imageChangeParams:
|
imageChangeParams:
|
||||||
automatic: false
|
automatic: true
|
||||||
containerNames:
|
containerNames:
|
||||||
- ${APP}
|
- ${APP}
|
||||||
from:
|
from:
|
||||||
|
|
|
@ -12,8 +12,7 @@ node() {
|
||||||
stage('Deploy to DEV') {
|
stage('Deploy to DEV') {
|
||||||
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=dev -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev"
|
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=dev -n rubex-dev | ${ocCmd} apply -f - -n rubex-dev"
|
||||||
sh "${ocCmd} tag rubex-dev/frontend:latest rubex-dev/frontend:dev"
|
sh "${ocCmd} tag rubex-dev/frontend:latest rubex-dev/frontend:dev"
|
||||||
sh "sleep 5"
|
sh "${ocCmd} deploy frontend --follow -n rubex-dev"
|
||||||
sh "${ocCmd} deploy frontend --latest --follow -n rubex-dev"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def isPromoteToTest = false
|
def isPromoteToTest = false
|
||||||
|
@ -25,8 +24,7 @@ node() {
|
||||||
stage('Deploy to TEST') {
|
stage('Deploy to TEST') {
|
||||||
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=test -n rubex-test | ${ocCmd} apply -f - -n rubex-test"
|
sh "${ocCmd} process -f ${appConfigUrl} -v ENV=test -n rubex-test | ${ocCmd} apply -f - -n rubex-test"
|
||||||
sh "${ocCmd} tag rubex-dev/frontend:dev rubex-dev/frontend:test"
|
sh "${ocCmd} tag rubex-dev/frontend:dev rubex-dev/frontend:test"
|
||||||
sh "sleep 5"
|
sh "${ocCmd} deploy frontend --follow -n rubex-test"
|
||||||
sh "${ocCmd} deploy frontend --latest --follow -n rubex-test"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue