Skip to content

Commit

Permalink
Merge pull request #208 from brianmcarey/allow-insecure-registry-podman
Browse files Browse the repository at this point in the history
Allow podman to push images to insecure kubevirtci registry
  • Loading branch information
k8s-ci-robot authored Nov 14, 2022
2 parents 2e924ba + 47796bc commit 6a77a49
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubevirtci
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ function kubevirtci::down() {

function kubevirtci::build() {
export REGISTRY="127.0.0.1:$(${KUBEVIRTCI_PATH}/cluster-up/cli.sh ports registry)"
if curl --unix-socket "/run/podman/podman.sock" http://d/v3.0.0/libpod/info >/dev/null 2>&1; then
cat <<EOF >> /etc/containers/registries.conf
[[registry]]
location = "$REGISTRY"
insecure = true
EOF
fi
make docker-build
make docker-push
}
Expand Down

0 comments on commit 6a77a49

Please sign in to comment.