mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-18 16:29:16 +00:00
chore: Use make.
This commit is contained in:
parent
e273ce6613
commit
b81e8ab1b7
|
@ -5,15 +5,15 @@ export REF_NAME=$2
|
||||||
|
|
||||||
if [ -z "$GIT_URL" ]; then
|
if [ -z "$GIT_URL" ]; then
|
||||||
echo "GIT_URL not defined"
|
echo "GIT_URL not defined"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$REF_NAME" ]; then
|
if [ -z "$REF_NAME" ]; then
|
||||||
echo "REF_NAME not defined"
|
echo "REF_NAME not defined"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IMAGE_NAME=nunux/$REF_NAME
|
echo "Building $REF_NAME ..."
|
||||||
|
|
||||||
echo "Building $IMAGE_NAME ..."
|
|
||||||
|
|
||||||
# Check that we've a valid working directory.
|
# Check that we've a valid working directory.
|
||||||
if [ ! -d "$APP_WORKING_DIR" ]; then
|
if [ ! -d "$APP_WORKING_DIR" ]; then
|
||||||
|
@ -38,8 +38,8 @@ if [ $? != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build Dockerfile
|
# Build Docke image
|
||||||
docker build --rm -t $IMAGE_NAME $APP_WORKING_DIR/${REF_NAME}
|
make -C $APP_WORKING_DIR/$REF_NAME
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
echo "Error, unable to build Docker image"
|
echo "Error, unable to build Docker image"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user