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
|
level: info
|
||||||
runner:
|
runner:
|
||||||
file: /data/.runner
|
file: /data/.runner
|
||||||
capacity: 2
|
capacity: 4
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
insecure: false
|
insecure: false
|
||||||
fetch_timeout: 5s
|
fetch_timeout: 5s
|
||||||
|
|||||||
@@ -45,21 +45,27 @@ jobs:
|
|||||||
|
|
||||||
# Guardrail anchor: target: runner
|
# Guardrail anchor: target: runner
|
||||||
- name: Build and push app image
|
- name: Build and push app image
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker buildx build --push \
|
with:
|
||||||
--tag "${{ steps.vars.outputs.app_image }}" \
|
context: .
|
||||||
--file ./Dockerfile.prod \
|
file: ./Dockerfile.prod
|
||||||
--target runner \
|
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
|
# Guardrail anchor: target: migrator
|
||||||
- name: Build and push migrator image
|
- name: Build and push migrator image
|
||||||
run: |
|
uses: docker/build-push-action@v5
|
||||||
docker buildx build --push \
|
with:
|
||||||
--tag "${{ steps.vars.outputs.migrator_image }}" \
|
context: .
|
||||||
--file ./Dockerfile.prod \
|
file: ./Dockerfile.prod
|
||||||
--target migrator \
|
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
|
- name: Release summary
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user