Fix to push imagws

pull/12/head
Nicolas Arenas 2024-10-23 00:49:49 +02:00
parent d2e9732240
commit 80f2242b6c
1 changed files with 9 additions and 11 deletions

20
Jenkinsfile vendored
View File

@ -19,8 +19,8 @@ pipeline {
stage('Build Environment') {
steps {
script {
app = docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-php .')
nginx = docker.build("${DOCKER_IDENTITY_NGINX}", '-f docker/Dockerfile-nginx .')
docker.build("${DOCKER_IDENTITY}", '-f docker/Dockerfile-php .')
docker.build("${DOCKER_IDENTITY_NGINX}", '-f docker/Dockerfile-nginx .')
}
}
}
@ -63,8 +63,8 @@ pipeline {
success {
script {
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
app.push("${DOCKER_IDENTITY}")
nginx.push("${DOCKER_IDENTITY_NGINX}")
docker.image("${DOCKER_IDENTITY}").push()
docker.image("${DOCKER_IDENTITY_NGINX}").push()
}
}
}
@ -73,13 +73,11 @@ pipeline {
}
post {
always {
script {
// Publicar los resultados de las pruebas de PHPUnit
xunit (
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
)
}
// Publicar los resultados de las pruebas de PHPUnit
xunit (
thresholds: [ skipped(failureThreshold: '0'), failed(failureThreshold: '0') ],
tools: [ PHPUnit(pattern: 'phpunit.xml') ]
)
// Remove containers
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} down'
sh 'docker compose -f ${DOCKER_COMPOSE_FILE} rm -f'