Skip to content

Commit 6a77a49

Browse files
authored
Merge pull request #208 from brianmcarey/allow-insecure-registry-podman
Allow podman to push images to insecure kubevirtci registry
2 parents 2e924ba + 47796bc commit 6a77a49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kubevirtci

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@ function kubevirtci::down() {
141141

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

0 commit comments

Comments
 (0)