cuddle-rust-service-plan/scripts/build_release.sh

18 lines
300 B
Bash
Raw Normal View History

2022-08-10 22:54:58 +02:00
#!/bin/bash
echo "building docker image"
2022-08-11 00:21:06 +02:00
tag="$REGISTRY/$NAME:$COMMIT_SHA"
2022-08-10 22:54:58 +02:00
if [[ -n $DEBUG ]]
then
echo "debug:"
echo " REGISTRY: $REGISTRY"
echo " NAME: $NAME"
echo " tag: $tag"
echo " pwd: $PWD"
echo " cwd: $CWD"
fi
2022-08-11 00:27:16 +02:00
docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .