Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .agent-guidance/operations/deployment.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Docker builder
uses: useblacksmith/setup-docker-builder@v1
- name: Build ${{ matrix.app }} Dockerfile
uses: docker/build-push-action@v6
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ${{ matrix.dockerfile }}
push: false
build-args: APP_ENV=development
cache-from: type=gha,scope=${{ matrix.app }}
12 changes: 7 additions & 5 deletions .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# Blacksmith's builder mounts a persistent NVMe layer cache into the
# runner (per repo/Dockerfile/arch). Unlike type=gha caching this has
# no 10GB repo cap or per-ref scoping, and skips the multi-minute
# cache export upload at the end of every build.
- name: Set up Docker builder
uses: useblacksmith/setup-docker-builder@v1

- name: Log in to GHCR
uses: docker/login-action@v3
Expand All @@ -188,7 +192,7 @@ jobs:

- name: Build and push ${{ matrix.app }} (${{ matrix.arch }}) by digest
id: build
uses: docker/build-push-action@v6
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ${{ matrix.dockerfile }}
Expand All @@ -197,8 +201,6 @@ jobs:
build-args: |
APP_ENV=${{ needs.prepare.outputs.app_env }}
RELEASE_VERSION=${{ needs.prepare.outputs.version }}
cache-from: type=gha,scope=ghcr-${{ matrix.app }}-${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=ghcr-${{ matrix.app }}-${{ matrix.arch }}

- name: Export digest
shell: bash
Expand Down