update the deploy and new service

This commit is contained in:
2026-03-26 20:01:06 -04:00
parent 78773110fc
commit 81151f90aa
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -82,6 +82,26 @@ if [ -f "docker/$APP/.env.keys" ] && [ -f /etc/bws-token ]; then
fi fi
cd "docker/$APP" cd "docker/$APP"
# Create directories marked with "# !create" in .gitignore
if [ -f .gitignore ]; then
create_next=false
while IFS= read -r line || [ -n "$line" ]; do
if [ "$line" = "# !create" ]; then
create_next=true
continue
fi
if [ "$create_next" = true ] && [ -n "$line" ]; then
dir="${line%/}"
if [ -n "$dir" ]; then
mkdir -p "$dir"
echo "Created directory: $dir"
fi
create_next=false
fi
done < .gitignore
fi
if grep -q '^\s*build:' compose.yml 2>/dev/null; then if grep -q '^\s*build:' compose.yml 2>/dev/null; then
docker compose build docker compose build
else else
+1
View File
@@ -25,6 +25,7 @@ fi
echo "Creating docker/$APP/compose.yml..." echo "Creating docker/$APP/compose.yml..."
mkdir -p "$REPO_ROOT/docker/$APP" mkdir -p "$REPO_ROOT/docker/$APP"
touch "$REPO_ROOT/docker/$APP/.gitignore"
cat > "$REPO_ROOT/docker/$APP/compose.yml" <<EOF cat > "$REPO_ROOT/docker/$APP/compose.yml" <<EOF
services: services:
$APP: $APP: