mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-13 19:33:55 +03:00
22 lines
540 B
Bash
Executable File
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 |