Deploy Locally
This commit is contained in:
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@@ -139,6 +139,24 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Deploy Containers Locally') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
// Remove contêiner antigo (se existir)
|
||||||
|
sh """
|
||||||
|
docker rm -f geradoresws-container || true
|
||||||
|
docker rm -f geradoresfe-container || true
|
||||||
|
"""
|
||||||
|
|
||||||
|
// Executa contêineres com as novas imagens
|
||||||
|
sh """
|
||||||
|
docker run -d --name geradoresws-container -p 8080:8080 ${DOCKER_REGISTRY}/geradoresws:${DOCKER_TAG}
|
||||||
|
docker run -d --name geradoresfe-container -p 3000:3000 ${DOCKER_REGISTRY}/geradoresfe:${DOCKER_TAG}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|||||||
Reference in New Issue
Block a user