Configure mainland build mirrors and persist BuildKit apt and pip caches
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user