add build fn

This commit is contained in:
Andras Bacsai 2023-04-24 13:49:29 +02:00
parent caa005a6ed
commit f832f11589

View File

@ -26,7 +26,7 @@ function queue {
function reset-db { function reset-db {
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
} }
function coolify {g function coolify {
bash vendor/bin/spin exec -u webuser coolify bash bash vendor/bin/spin exec -u webuser coolify bash
} }
function coolify-root { function coolify-root {
@ -36,6 +36,16 @@ function vite {
bash vendor/bin/spin exec vite bash bash vendor/bin/spin exec vite bash
} }
function build-prod {
if [ "$1" ]; then
echo "Building version $1"
docker build -t ghcr.io/coollabsio/coolify:$1 -f docker/prod-ssu/Dockerfile .
else
echo "Building version v4.0.0-nightly.1"
docker build -t ghcr.io/coollabsio/coolify:v4.0.0-nightly.1 -f docker/prod-ssu/Dockerfile .
fi
}
function default { function default {
help help
} }