feat: package docker deployment and publish flow
This commit is contained in:
28
scripts/init-docker-config.sh
Normal file
28
scripts/init-docker-config.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
mkdir -p config runtime/codex data/workspace/stage data/workspace/session data/workspace/backup
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
echo "created .env from .env.example"
|
||||
fi
|
||||
|
||||
if [ ! -f config/settings.json ]; then
|
||||
cp config/settings.docker.example.json config/settings.json
|
||||
echo "created config/settings.json from config/settings.docker.example.json"
|
||||
fi
|
||||
|
||||
if [ ! -f runtime/cookies.json ]; then
|
||||
cp runtime/cookies.example.json runtime/cookies.json
|
||||
echo "created runtime/cookies.json placeholder"
|
||||
fi
|
||||
|
||||
if [ ! -f runtime/upload_config.json ]; then
|
||||
cp runtime/upload_config.example.json runtime/upload_config.json
|
||||
echo "created runtime/upload_config.json placeholder"
|
||||
fi
|
||||
|
||||
if [ ! -x runtime/biliup ]; then
|
||||
echo "warning: runtime/biliup is missing or not executable; publish will fail until you provide it" >&2
|
||||
fi
|
||||
Reference in New Issue
Block a user