Merge pull request #418 from opencloud-eu/optimize-docker-build
feat: optimize docker build
This commit is contained in:
+16
-2
@@ -1565,13 +1565,20 @@ def dockerRelease(ctx, repo, build_type):
|
|||||||
"image": PLUGINS_DOCKER_BUILDX,
|
"image": PLUGINS_DOCKER_BUILDX,
|
||||||
"settings": {
|
"settings": {
|
||||||
"dry_run": True,
|
"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),
|
"repo": "%s,quay.io/%s" % (repo, repo),
|
||||||
"auto_tag": False if build_type == "daily" else True,
|
"auto_tag": False if build_type == "daily" else True,
|
||||||
"tag": "daily" if build_type == "daily" else "",
|
"tag": "daily" if build_type == "daily" else "",
|
||||||
"default_tag": "daily",
|
"default_tag": "daily",
|
||||||
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
||||||
"build_args": build_args,
|
"build_args": build_args,
|
||||||
|
"pull_image": False,
|
||||||
|
"http_proxy": {
|
||||||
|
"from_secret": "ci_http_proxy",
|
||||||
|
},
|
||||||
|
"https_proxy": {
|
||||||
|
"from_secret": "ci_http_proxy",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"when": [
|
"when": [
|
||||||
{
|
{
|
||||||
@@ -1584,12 +1591,19 @@ def dockerRelease(ctx, repo, build_type):
|
|||||||
"image": PLUGINS_DOCKER_BUILDX,
|
"image": PLUGINS_DOCKER_BUILDX,
|
||||||
"settings": {
|
"settings": {
|
||||||
"repo": "%s,quay.io/%s" % (repo, repo),
|
"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,
|
"auto_tag": False if build_type == "daily" else True,
|
||||||
"tag": "daily" if build_type == "daily" else "",
|
"tag": "daily" if build_type == "daily" else "",
|
||||||
"default_tag": "daily",
|
"default_tag": "daily",
|
||||||
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
"dockerfile": "opencloud/docker/Dockerfile.multiarch",
|
||||||
"build_args": build_args,
|
"build_args": build_args,
|
||||||
|
"pull_image": False,
|
||||||
|
"http_proxy": {
|
||||||
|
"from_secret": "ci_http_proxy",
|
||||||
|
},
|
||||||
|
"https_proxy": {
|
||||||
|
"from_secret": "ci_http_proxy",
|
||||||
|
},
|
||||||
"logins": [
|
"logins": [
|
||||||
{
|
{
|
||||||
"registry": "https://index.docker.io/v1/",
|
"registry": "https://index.docker.io/v1/",
|
||||||
|
|||||||
Reference in New Issue
Block a user