ci: bump runner capacity to 4 and add BuildKit cache for image builds
CI / Typecheck (push) Has started running
CI / Unit Tests (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Has started running
CI / Assistant Split Regression (push) Has started running
CI / Lint (push) Has started running
Docker Deploy Test / Fresh-Linux Docker Deploy (push) Has started running
Release Image / Build And Push Images (push) Has started running
CI / Typecheck (push) Has started running
CI / Unit Tests (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Has started running
CI / Assistant Split Regression (push) Has started running
CI / Lint (push) Has started running
Docker Deploy Test / Fresh-Linux Docker Deploy (push) Has started running
Release Image / Build And Push Images (push) Has started running
- act_runner capacity 2 → 4 (QNAP host has 6 cores, leave 2 for OS) - release-image: switch to docker/build-push-action@v5 with GHA cache (separate scopes for app/migrator to avoid cross-invalidation) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,7 @@ services:
|
||||
level: info
|
||||
runner:
|
||||
file: /data/.runner
|
||||
capacity: 2
|
||||
capacity: 4
|
||||
timeout: 3h
|
||||
insecure: false
|
||||
fetch_timeout: 5s
|
||||
|
||||
@@ -45,21 +45,27 @@ jobs:
|
||||
|
||||
# Guardrail anchor: target: runner
|
||||
- name: Build and push app image
|
||||
run: |
|
||||
docker buildx build --push \
|
||||
--tag "${{ steps.vars.outputs.app_image }}" \
|
||||
--file ./Dockerfile.prod \
|
||||
--target runner \
|
||||
.
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile.prod
|
||||
target: runner
|
||||
push: true
|
||||
tags: ${{ steps.vars.outputs.app_image }}
|
||||
cache-from: type=gha,scope=app
|
||||
cache-to: type=gha,mode=max,scope=app
|
||||
|
||||
# Guardrail anchor: target: migrator
|
||||
- name: Build and push migrator image
|
||||
run: |
|
||||
docker buildx build --push \
|
||||
--tag "${{ steps.vars.outputs.migrator_image }}" \
|
||||
--file ./Dockerfile.prod \
|
||||
--target migrator \
|
||||
.
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile.prod
|
||||
target: migrator
|
||||
push: true
|
||||
tags: ${{ steps.vars.outputs.migrator_image }}
|
||||
cache-from: type=gha,scope=migrator
|
||||
cache-to: type=gha,mode=max,scope=migrator
|
||||
|
||||
- name: Release summary
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user