cuddle-react-plan/scripts/build_release.sh

17 lines
309 B
Bash
Raw Permalink Normal View History

2022-08-11 22:22:45 +02:00
#!/bin/bash
echo "building docker image"
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
if [[ -n $DEBUG ]]
then
echo "debug:"
echo " REGISTRY: $REGISTRY"
echo " SERVICE: $SERVICE"
echo " COMMIT_SHA: $COMMIT_SHA"
echo " TMP: $TMP"
fi
docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .