Fix to push imagws
parent
d2e9732240
commit
80f2242b6c
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue