graphql-engine/.circleci/build-docker-image.sh
2018-07-10 10:01:02 +00:00

22 lines
540 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DF_VERSION=$1
for FILE in *.dockerfile; do
f=$(basename -- "$FILE")
f="${f%.*}"
TAG=hasura/graphql-engine-$f:$DF_VERSION
echo
echo "=============================================================="
echo "Building and pushing $TAG"
echo "=============================================================="
echo
echo "=======>>>> docker build -t $TAG -f $FILE ."
echo
docker build -t $TAG -f $FILE .
echo "=======>>>> docker push $TAG"
echo
docker push $TAG
done