8e34004cad
Change-Id: Iee6f664c826ebfb22307bda9fd26a61b2ff60079
18 lines
420 B
Bash
Executable File
18 lines
420 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
if [[ $# != 1 ]]; then
|
|
printf "usage: $0 <charts file>\n"
|
|
exit 1
|
|
fi
|
|
|
|
IMAGE_NAME="${IMAGE_NAME:-helm-chart-collator}"
|
|
DOCKER_REGISTRY="${DOCKER_REGISTRY:-quay.io}"
|
|
IMAGE_PREFIX="${IMAGE_PREFIX:-airshipit}"
|
|
IMAGE_TAG="${IMAGE_TAG:-latest}"
|
|
|
|
image=${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${IMAGE_NAME}:${IMAGE_TAG}
|
|
echo "Building the ${image}"
|
|
docker build . -t $image --build-arg "CHARTS=$(cat "$1")"
|