change
This commit is contained in:
parent
66cb1a0c67
commit
a5e6719283
|
|
@ -9,14 +9,27 @@ pipeline {
|
||||||
stage('Clone') {
|
stage('Clone') {
|
||||||
steps {
|
steps {
|
||||||
git branch: 'main',
|
git branch: 'main',
|
||||||
//credentialsId: '9174b603-02b6-46bd-970d-64569bab977a',
|
credentialsId: '9174b603-02b6-46bd-970d-64569bab977a',
|
||||||
|
url: 'http://192.168.9.65:3001/patric/sc-test.git'
|
||||||
|
git branch: 'main',
|
||||||
url: 'https://github.com/buddy-works/laravel-first-steps.git'
|
url: 'https://github.com/buddy-works/laravel-first-steps.git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh 'docker build . -t dockerfile'
|
script {
|
||||||
|
dockerImage = docker.build registry + ":$BUILD_NUMBER"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Deploy our image') {
|
||||||
|
steps{
|
||||||
|
script {
|
||||||
|
docker.withRegistry( '', registryCredential ) {
|
||||||
|
dockerImage.push()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue