fix: add --platform=linux/amd64 to Jenkinsfiles for cross-platform build
这个提交包含在:
父节点
4d98ae151f
当前提交
dd63093a85
@ -34,7 +34,7 @@ pipeline {
|
||||
bat """
|
||||
docker login ${env.ACR_REGISTRY} -u ${env.ACR_USERNAME} -p %ACR_PASS%
|
||||
docker pull ${fullImage} || exit 0
|
||||
docker build -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} .
|
||||
docker build --platform=linux/amd64 -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} .
|
||||
docker push ${fullImage}
|
||||
docker rmi ${fullImage} || exit 0
|
||||
"""
|
||||
|
||||
@ -34,7 +34,7 @@ pipeline {
|
||||
bat """
|
||||
docker login ${env.ACR_REGISTRY} -u ${env.ACR_USERNAME} -p %ACR_PASS%
|
||||
docker pull ${fullImage} || exit 0
|
||||
docker build -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} .
|
||||
docker build --platform=linux/amd64 -f ${env.DOCKERFILE} ${env.BUILD_ARGS} --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${fullImage} -t ${fullImage} .
|
||||
docker push ${fullImage}
|
||||
docker rmi ${fullImage} || exit 0
|
||||
"""
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户