Skip to content

Commit

Permalink
add options for dealing with self-signed zot cert
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Capdevila <[email protected]>
  • Loading branch information
pau-hedgehog committed Dec 27, 2024
1 parent 74fb42a commit 4de0a1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hack/tools.just
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ test path="./...": gen _envtest _gcov2lcov
#

oci := ""
skopeo_dest_insecure := if oci == "http" { "--dest-tls-verify=false" } else { "" }
oras_insecure := if oci == "http" { "--plain-http" } else { "" }
skopeo_dest_insecure := if oci == "http" { "" } else { "--dest-tls-verify=false" }
oras_insecure := if oci == "http" { "--plain-http" } else { "--insecure" }

_docker-build bin: build
cp bin/{{bin}} config/docker/{{bin}}/
Expand All @@ -153,7 +153,7 @@ _helm-build name: _helm
{{helm}} lint config/helm/{{name}}-{{version}}.tgz

_helm-push name: _helm
{{helm}} push config/helm/{{name}}-{{version}}.tgz oci://{{oci_repo}}/{{oci_prefix}}/charts
{{helm}} push --insecure-skip-tls-verify config/helm/{{name}}-{{version}}.tgz oci://{{oci_repo}}/{{oci_prefix}}/charts

_kube-build name: (_docker-build name) (_helm-build name)

Expand Down

0 comments on commit 4de0a1e

Please sign in to comment.