Configure mainland build mirrors and persist BuildKit apt and pip caches

This commit is contained in:
Pigway
2026-10-07 17:37:33 +08:00
parent 1e13977ec2
commit d88c88f876
8 changed files with 83 additions and 8 deletions
+5 -2
View File
@@ -3,6 +3,9 @@ on: [push, pull_request, workflow_dispatch]
jobs:
verify:
runs-on: ubuntu-latest
env:
DEBIAN_MIRROR: ${{ vars.DEBIAN_MIRROR }}
DEBIAN_SECURITY_MIRROR: ${{ vars.DEBIAN_SECURITY_MIRROR }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@@ -22,8 +25,8 @@ jobs:
p=Path('.env')
p.write_text(p.read_text().replace('FRAME_FLOW_TOKEN=\n', 'FRAME_FLOW_TOKEN='+secrets.token_urlsafe(32)+'\n'))
PY
docker compose config --quiet
docker compose build --pull
. ./deploy/build-cn.env
./scripts/build-verify.sh
mkdir -p data/images data/generated data/cache config
sudo chown -R 10333:10333 data config
docker compose up -d