add base build_release
This commit is contained in:
0
scripts/build.sh
Normal file
0
scripts/build.sh
Normal file
17
scripts/build_release.sh
Normal file
17
scripts/build_release.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "building docker image"
|
||||
|
||||
tag="$REGISTRY/$NAME:${commit_sha:0:10}"
|
||||
|
||||
if [[ -n $DEBUG ]]
|
||||
then
|
||||
echo "debug:"
|
||||
echo " REGISTRY: $REGISTRY"
|
||||
echo " NAME: $NAME"
|
||||
echo " tag: $tag"
|
||||
echo " pwd: $PWD"
|
||||
echo " cwd: $CWD"
|
||||
fi
|
||||
|
||||
docker build -t "$tag" "$TMP/build_release.Dockerfile" .
|
Reference in New Issue
Block a user