graphql-engine/.circleci/build-docker-image.sh

22 lines
540 B
Bash
Raw Normal View History

2018-07-10 13:01:02 +03:00
#!/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