From b74212667141a30c369bc4a5b53727f5ef61cc4e Mon Sep 17 00:00:00 2001 From: "blacksmith-sh[bot]" <157653362+blacksmith-sh[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:00:05 +0000 Subject: [PATCH] Migrate workflows to Blacksmith --- .github/workflows/ghcr-publish.yml | 16 +++++++--------- .github/workflows/pr-gate.yml | 4 ++-- .github/workflows/test-backend.yml | 2 +- .github/workflows/test-web.yml | 2 +- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ghcr-publish.yml b/.github/workflows/ghcr-publish.yml index 6e4439669..3144b6db9 100644 --- a/.github/workflows/ghcr-publish.yml +++ b/.github/workflows/ghcr-publish.yml @@ -27,7 +27,7 @@ jobs: platform: [linux/amd64, linux/arm64] include: - platform: linux/amd64 - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 - platform: linux/arm64 runs-on: ubuntu-24.04-arm @@ -57,8 +57,8 @@ jobs: with: cosign-release: "v2.2.4" - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Login to GitHub Packages Docker Registry uses: docker/login-action@v3 @@ -69,12 +69,10 @@ jobs: - name: Build Docker image id: build - uses: docker/build-push-action@v6 + uses: useblacksmith/build-push-action@v2 with: context: . labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha,scope=${{ env.PLATFORM_PAIR }} - cache-to: type=gha,mode=max,scope=${{ env.PLATFORM_PAIR }} platforms: ${{ matrix.platform }} outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true,annotation.org.opencontainers.image.description=Blazingly fast code search build-args: | @@ -110,7 +108,7 @@ jobs: run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} merge: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: packages: write needs: @@ -123,8 +121,8 @@ jobs: pattern: digests-* merge-multiple: true - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Setup Blacksmith Builder + uses: useblacksmith/setup-docker-builder@v1 - name: Extract Docker metadata id: meta diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index de59790f0..127504460 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -8,7 +8,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read steps: @@ -19,6 +19,6 @@ jobs: - name: Build Docker image id: build - uses: docker/build-push-action@v6 + uses: useblacksmith/build-push-action@v2 with: context: . diff --git a/.github/workflows/test-backend.yml b/.github/workflows/test-backend.yml index 5d4b5fde1..37ea3e776 100644 --- a/.github/workflows/test-backend.yml +++ b/.github/workflows/test-backend.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read steps: diff --git a/.github/workflows/test-web.yml b/.github/workflows/test-web.yml index 108cc2778..006ba0e58 100644 --- a/.github/workflows/test-web.yml +++ b/.github/workflows/test-web.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: blacksmith-4vcpu-ubuntu-2404 permissions: contents: read steps: