Add Dockerfile for vagrant image (#5977)

This commit is contained in:
Maxime Guyot
2020-04-18 22:53:36 +02:00
committed by GitHub
parent 32fec3bb74
commit 4d7eca7d2e
6 changed files with 55 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -euo pipefail
if [ "$#" -ne 1 ]; then
echo "Usage: $0 tag" >&2
exit 1
fi
VERSION="$1"
IMG="quay.io/kubespray/vagrant:${VERSION}"
docker build . --build-arg "KUBESPRAY_VERSION=${VERSION}" --tag "$IMG"
docker push "$IMG"