explicitat 'kaniko; container for the image build step
This commit is contained in:
parent
83308b9eb6
commit
f80a104dd1
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -29,9 +29,11 @@ spec:
|
|||||||
stages {
|
stages {
|
||||||
stage('Build and Push Image with Kaniko') {
|
stage('Build and Push Image with Kaniko') {
|
||||||
steps {
|
steps {
|
||||||
|
container('kaniko') {
|
||||||
sh 'echo $PATH'
|
sh 'echo $PATH'
|
||||||
sh '/kaniko/executor --dockerfile=./Dockerfile --context=dir://. --destination=https://harbor.kubix.siatel.ro/builds/jenkins:${jenkinsTag}-plus'
|
sh '/kaniko/executor --dockerfile=./Dockerfile --context=dir://. --destination=https://harbor.kubix.siatel.ro/builds/jenkins:${jenkinsTag}-plus'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user