Migrate workflows to Blacksmith (#421)

Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
This commit was merged in pull request #421.
This commit is contained in:
blacksmith-sh[bot]
2025-10-13 11:55:39 -05:00
committed by GitHub
parent a4873e96bf
commit 6dca33efba
2 changed files with 5 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout repository
uses: actions/checkout@v5
@@ -30,13 +30,8 @@ jobs:
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
driver-opts: |
image=moby/buildkit:master
network=host
- name: Setup Blacksmith Builder
uses: useblacksmith/setup-docker-builder@v1
- name: Cache npm dependencies
uses: actions/cache@v4
@@ -99,7 +94,7 @@ jobs:
fi
- name: Build and Push Multi-Arch Docker Image
uses: docker/build-push-action@v6
uses: useblacksmith/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile
@@ -109,8 +104,6 @@ jobs:
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
build-args: |
BUILDKIT_INLINE_CACHE=1
BUILDKIT_CONTEXT_KEEP_GIT_DIR=1