This commit is contained in:
17
scripts/build_release.sh
Executable file
17
scripts/build_release.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
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_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_release.Dockerfile" .
|
||||
|
Reference in New Issue
Block a user