mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 11:19:39 -06:00
feat: optimize docker build
This commit is contained in:
@@ -1545,13 +1545,20 @@ def dockerRelease(ctx, repo, build_type):
|
||||
"image": PLUGINS_DOCKER_BUILDX,
|
||||
"settings": {
|
||||
"dry_run": True,
|
||||
"platforms": "linux/amd64,linux/arm64",
|
||||
"platforms": "linux/amd64", # do dry run only on the native platform
|
||||
"repo": "%s,quay.io/%s" % (repo, repo),
|
||||
"auto_tag": False if build_type == "daily" else True,
|
||||
"tag": "daily" if build_type == "daily" else "",
|
||||
"default_tag": "daily",
|
||||
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
||||
"build_args": build_args,
|
||||
"pull_image": False,
|
||||
"http_proxy": {
|
||||
"from_secret": "ci_http_proxy",
|
||||
},
|
||||
"https_proxy": {
|
||||
"from_secret": "ci_http_proxy",
|
||||
},
|
||||
},
|
||||
"when": [
|
||||
{
|
||||
@@ -1564,12 +1571,19 @@ def dockerRelease(ctx, repo, build_type):
|
||||
"image": PLUGINS_DOCKER_BUILDX,
|
||||
"settings": {
|
||||
"repo": "%s,quay.io/%s" % (repo, repo),
|
||||
"platforms": "linux/amd64,linux/arm64",
|
||||
"platforms": "linux/amd64,linux/arm64", # we can add remote builders
|
||||
"auto_tag": False if build_type == "daily" else True,
|
||||
"tag": "daily" if build_type == "daily" else "",
|
||||
"default_tag": "daily",
|
||||
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
||||
"build_args": build_args,
|
||||
"pull_image": False,
|
||||
"http_proxy": {
|
||||
"from_secret": "ci_http_proxy",
|
||||
},
|
||||
"https_proxy": {
|
||||
"from_secret": "ci_http_proxy",
|
||||
},
|
||||
"logins": [
|
||||
{
|
||||
"registry": "https://index.docker.io/v1/",
|
||||
|
||||
Reference in New Issue
Block a user