Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create skip_create_repos option (noticeable perf boost for ECR) #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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

Successfully merging this pull request may close these issues.

2 participants