Skip to content

Commit

Permalink
fix(build, buildah): prefix registries mirrors with https /2
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed May 30, 2024
1 parent 4ec1d38 commit 0c61b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/docker_registry/generic_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (api *genericApi) getOrCreateRegistryMirrors(ctx context.Context) ([]string
mirrorsFromEnv := util.PredefinedValuesByEnvNamePrefix("WERF_CONTAINER_REGISTRY_MIRROR_")

for _, mirror := range mirrorsFromEnv {
if !strings.HasPrefix("http://", mirror) && !strings.HasPrefix("https://", mirror) {
if !strings.HasPrefix(mirror, "http://") && !strings.HasPrefix(mirror, "https://") {
mirror = "https://" + mirror
}

Expand Down

0 comments on commit 0c61b51

Please sign in to comment.