add .env generation from bws, handle build services in deploy
Provision server / provision (push) Successful in 6s
Provision server / provision (push) Successful in 6s
- configure.sh generates .env files from .env.keys + bws - deploy.sh detects build: services and runs docker compose build - new-service.sh prints .env.keys instructions - clean up .gitignore
This commit is contained in:
+7
-3
@@ -48,9 +48,13 @@ APP="${CMD#deploy-}"
|
||||
cd /opt/hantim
|
||||
git pull
|
||||
cd "docker/$APP"
|
||||
if ! docker compose pull; then
|
||||
echo "Image not yet available for $APP — skipping. It will deploy when the app repo is first pushed."
|
||||
exit 0
|
||||
if grep -q '^\s*build:' compose.yml 2>/dev/null; then
|
||||
docker compose build
|
||||
else
|
||||
if ! docker compose pull; then
|
||||
echo "Image not yet available for $APP — skipping. It will deploy when the app repo is first pushed."
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$APP" = "nginx" ]; then
|
||||
|
||||
Reference in New Issue
Block a user