Files
dsk-iac/kubespray/test-infra/vagrant-docker/build.sh
havelight-ee 4c32a7239d update
2023-05-30 14:44:26 +09:00

14 lines
240 B
Bash
Executable File

#!/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"