Skip to content

Conversation

partounian
Copy link

No description provided.

@partounian partounian changed the title Create skip_create_repos option Create skip_create_repos option (noticeable perf boost for ECR) Jan 17, 2024
@@ -334,7 +338,7 @@ login_to_registry() {
}

create_repos() {
if ! _can_push; then
if ! _can_push || ! _skip_create_repos; then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the condition should actually be:

  ! _can_push || _skip_create_repos

@@ -405,7 +409,7 @@ _build_image_buildkit() {

local cache_to
if _can_push; then
cache_to="--cache-to mode=max,image-manifest=true,type=registry,ref=$cache_image"
cache_to="--cache-to mode=max,image-manifest=true,type=registry,compression=zstd,ref=$cache_image"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to leave the compression=zstd part for a separate (configurable) option as it can increase build time.

@whoan
Copy link
Owner

whoan commented Jan 17, 2024

Close #155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants