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

17 lines
327 B
Bash
Raw Normal View History

2022-08-10 22:54:58 +02:00
#!/bin/bash
echo "building docker image"
2022-08-11 01:25:50 +02:00
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
2022-08-10 22:54:58 +02:00
if [[ -n $DEBUG ]]
then
echo "debug:"
echo " REGISTRY: $REGISTRY"
2022-08-11 01:24:26 +02:00
echo " SERVICE: $SERVICE"
echo " COMMIT_SHA: $COMMIT_SHA"
echo " TMP: $TMP"
2022-08-10 22:54:58 +02:00
fi
2022-08-11 22:38:37 +02:00
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .