Page MenuHomePhorge

build-image
No OneTemporary

Size
576 B
Referenced Files
None
Subscribers
None

build-image

#!/bin/bash
set -x
set -e
pwd
if [ -z "${GIT_URI}" ]; then
echo "No GIT_URI specified. Exiting."
exit 1
fi
git clone -b ${GIT_BRANCH:-master} ${GIT_URI}
cd $(basename ${GIT_URI} .git)
if [ ! -z "${APP_SRC}" ]; then
cd ${APP_SRC}
fi
if [ -f "composer.json" ]; then
echo "Detected composer.json, running install"
php -dmemory_limit=${COMPOSER_MEMORY_LIMIT:--1} /usr/bin/composer install ${COMPOSER_ARGS}
rm -rf ~/.cache/composer/
fi
if [ -z "${LARAVEL_ENV}" ]; then
LARAVEL_ENV=prod
fi
npm install
npm run ${LARAVEL_ENV} && rm -rf ~/.npm/

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Jul 10, 12:24 AM (1 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1057585
Default Alt Text
build-image (576 B)

Event Timeline