Adds running steps
parent
dd031e033c
commit
b077a9d5a7
|
@ -29,6 +29,20 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage(('Prepare Docker Composer')) {
|
||||||
|
steps {
|
||||||
|
sh """
|
||||||
|
sed 's|ogcore-php:static|${DOCKER_IDENTITY}|g; s|ogcore-nginx:static|${DOCKER_IDENTITY_NGINX}|g' ${DOCKER_COMPOSE_TEMPLATE} > ${DOCKER_COMPOSE_FILE}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Run containers') {
|
||||||
|
steps {
|
||||||
|
sh "docker compose -f ${DOCKER_COMPOSE_FILE} up -d"
|
||||||
|
sh "docker compose -f ${DOCKER_COMPOSE_FILE} ps"
|
||||||
|
sh "docker compose -f ${DOCKER_COMPOSE_FILE} down"
|
||||||
|
}
|
||||||
|
}
|
||||||
stage ("Delete Image") {
|
stage ("Delete Image") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
|
Loading…
Reference in New Issue