Skip to content

Commit

Permalink
M
Browse files Browse the repository at this point in the history
  • Loading branch information
RanaRj authored Jul 9, 2023
1 parent 5020e86 commit d5220f6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ stage('MODIFIED IMAGE TAG') {
sh 'ansible-playbook playbooks/create_directory.yml'
}
}


stage('PUSH IMAGE ON DOCKERHUB') {
environment {
dockerhub_user = credentials('DOCKERHUB_USER')
dockerhub_pass = credentials('DOCKERHUB_PASS')
}
steps {
sh 'ansible-playbook playbooks/push_dockerhub.yml \
--extra-vars "JOB_NAME=$JOB_NAME" \
--extra-vars "BUILD_ID=$BUILD_ID" \
--extra-vars "dockerhub_user=$dockerhub_user" \
--extra-vars "dockerhub_pass=$dockerhub_pass"'
}
}

}
}

0 comments on commit d5220f6

Please sign in to comment.