Skip to content

Commit 0e8fdf0

Browse files
Migrate workflows to Blacksmith (#554)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
1 parent 83c6704 commit 0e8fdf0

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.github/workflows/ghcr-publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
platform: [linux/amd64, linux/arm64]
2828
include:
2929
- platform: linux/amd64
30-
runs-on: ubuntu-latest
30+
runs-on: blacksmith-4vcpu-ubuntu-2404
3131
- platform: linux/arm64
3232
runs-on: ubuntu-24.04-arm
3333

@@ -57,8 +57,8 @@ jobs:
5757
with:
5858
cosign-release: "v2.2.4"
5959

60-
- name: Set up Docker Buildx
61-
uses: docker/setup-buildx-action@v3
60+
- name: Setup Blacksmith Builder
61+
uses: useblacksmith/setup-docker-builder@v1
6262

6363
- name: Login to GitHub Packages Docker Registry
6464
uses: docker/login-action@v3
@@ -69,12 +69,10 @@ jobs:
6969

7070
- name: Build Docker image
7171
id: build
72-
uses: docker/build-push-action@v6
72+
uses: useblacksmith/build-push-action@v2
7373
with:
7474
context: .
7575
labels: ${{ steps.meta.outputs.labels }}
76-
cache-from: type=gha,scope=${{ env.PLATFORM_PAIR }}
77-
cache-to: type=gha,mode=max,scope=${{ env.PLATFORM_PAIR }}
7876
platforms: ${{ matrix.platform }}
7977
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
8078
build-args: |
@@ -110,7 +108,7 @@ jobs:
110108
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
111109

112110
merge:
113-
runs-on: ubuntu-latest
111+
runs-on: blacksmith-4vcpu-ubuntu-2404
114112
permissions:
115113
packages: write
116114
needs:
@@ -123,8 +121,8 @@ jobs:
123121
pattern: digests-*
124122
merge-multiple: true
125123

126-
- name: Set up Docker Buildx
127-
uses: docker/setup-buildx-action@v3
124+
- name: Setup Blacksmith Builder
125+
uses: useblacksmith/setup-docker-builder@v1
128126

129127
- name: Extract Docker metadata
130128
id: meta

.github/workflows/pr-gate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: blacksmith-4vcpu-ubuntu-2404
1212
permissions:
1313
contents: read
1414
steps:
@@ -19,6 +19,6 @@ jobs:
1919

2020
- name: Build Docker image
2121
id: build
22-
uses: docker/build-push-action@v6
22+
uses: useblacksmith/build-push-action@v2
2323
with:
2424
context: .

.github/workflows/test-backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: blacksmith-4vcpu-ubuntu-2404
1111
permissions:
1212
contents: read
1313
steps:

.github/workflows/test-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: blacksmith-4vcpu-ubuntu-2404
1111
permissions:
1212
contents: read
1313
steps:

0 commit comments

Comments
 (0)