chore: Add logs.

This commit is contained in:
Nicolas Carlier 2014-11-06 16:05:05 +00:00
parent 80b82e4ec7
commit cd6179e9d4

View File

@ -32,6 +32,7 @@ fi
rm -rf $APP_WORKING_DIR/$REF_NAME rm -rf $APP_WORKING_DIR/$REF_NAME
# Clone repository # Clone repository
echo "Cloning $GIT_URL into ${APP_WORKING_DIR}/${REF_NAME} ..."
ssh-agent bash -c 'ssh-add ${DEPLOY_KEY}; git clone --depth 1 ${GIT_URL} ${APP_WORKING_DIR}/${REF_NAME}' ssh-agent bash -c 'ssh-add ${DEPLOY_KEY}; git clone --depth 1 ${GIT_URL} ${APP_WORKING_DIR}/${REF_NAME}'
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "Error, unable to clone repository" echo "Error, unable to clone repository"
@ -39,6 +40,7 @@ if [ $? != 0 ]; then
fi fi
# Build Docke image # Build Docke image
echo "Building image ..."
make -C $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"