Changed build container image to buildkit
This commit is contained in:
parent
b14e6cf873
commit
43a6e7c67b
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -33,11 +33,15 @@ pipeline {
|
||||
|
||||
stage('Build & Push Docker') {
|
||||
steps {
|
||||
container('docker') {
|
||||
container('buildkitd') {
|
||||
sh '''
|
||||
docker build -t ${DOCKER_IMAGE} .
|
||||
echo "${ACR_PASSWORD}" | docker login marcin00.azurecr.io -u ${ACR_USERNAME} --password-stdin
|
||||
docker push ${DOCKER_IMAGE}
|
||||
buildctl build \
|
||||
--frontend dockerfile.v0 \
|
||||
--local context=. \
|
||||
--local dockerfile=. \
|
||||
--output type=image,name=${DOCKER_IMAGE},push=true \
|
||||
--export-cache type=registry,ref=${DOCKER_IMAGE}-cache,mode=max \
|
||||
--import-cache type=registry,ref=${DOCKER_IMAGE}-cache
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user