Adds running steps
testing/ogcore-api/pipeline/head This commit looks good Details

develop-jenkins
Nicolas Arenas 2024-10-23 01:01:43 +02:00
parent 600f990020
commit dab09640a0
1 changed files with 14 additions and 0 deletions

14
Jenkinsfile vendored
View File

@ -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") {
steps {
script {