You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
240 B

  1. #!/bin/sh
  2. set -euo pipefail
  3. if [ "$#" -ne 1 ]; then
  4. echo "Usage: $0 tag" >&2
  5. exit 1
  6. fi
  7. VERSION="$1"
  8. IMG="quay.io/kubespray/vagrant:${VERSION}"
  9. docker build . --build-arg "KUBESPRAY_VERSION=${VERSION}" --tag "$IMG"
  10. docker push "$IMG"