images/helm-chart-collator/build-image.sh
Pallav Gupta 8e34004cad Fix helm collator image build
Change-Id: Iee6f664c826ebfb22307bda9fd26a61b2ff60079
2021-06-10 12:32:26 -07:00

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")"