Skip to content

Commit

Permalink
feat: configurando build no Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
davisilvarafacho authored Dec 12, 2024
1 parent 62151f3 commit 92bc902
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,22 @@ pipeline {
agent any

stages {
stage ('Inicial') {
stage ('Build') {
steps {
echo 'Iniciando pipeline'
script {
dockerapp = docker.build("davisilvarafacho/django-boombox:${env.BUILD_ID}", '-f ./Dockerfile ./')
}
}
}

stage ('Push Image') {
steps {
script {
docker.withRegistry("https://registry.hub.docker.com", 'dockerhub') {
dockerapp.push('latest')
dockerapp.push('${env.BUILD_ID}')
}
}
}
}
}
Expand Down

0 comments on commit 92bc902

Please sign in to comment.