Skip to content

Commit 05ec589

Browse files
chore: migrate workflows to Blacksmith runners (#1569)
--------- Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com> Co-authored-by: Eduardo Gurgel Pinho <eduardo.gurgel@supabase.io>
1 parent cbcbbfd commit 05ec589

File tree

8 files changed

+28
-39
lines changed

8 files changed

+28
-39
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ concurrency:
2323
jobs:
2424
tests:
2525
name: Lint
26-
runs-on: ubuntu-latest
26+
runs-on: blacksmith-4vcpu-ubuntu-2404
2727

2828
steps:
2929
- uses: actions/checkout@v2

.github/workflows/manual_prod_build.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
required: true
1111
jobs:
1212
docker_x86_release:
13-
runs-on: ubuntu-latest
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
1414
timeout-minutes: 120
1515
env:
1616
arch: amd64
@@ -25,21 +25,20 @@ jobs:
2525
tags: |
2626
type=raw,value=v${{ github.event.inputs.docker_tag }}_${{ env.arch }}
2727
28-
- uses: docker/setup-buildx-action@v2
28+
- name: Setup Blacksmith Builder
29+
uses: useblacksmith/setup-docker-builder@v1
2930

3031
- uses: docker/login-action@v2
3132
with:
3233
username: ${{ secrets.DOCKER_USERNAME }}
3334
password: ${{ secrets.DOCKER_PASSWORD }}
3435

3536
- id: build
36-
uses: docker/build-push-action@v3
37+
uses: useblacksmith/build-push-action@v2
3738
with:
3839
push: true
3940
tags: ${{ steps.meta.outputs.tags }}
4041
platforms: linux/${{ env.arch }}
41-
cache-from: type=gha
42-
cache-to: type=gha,mode=max
4342

4443
docker_arm_release:
4544
runs-on: arm-runner
@@ -64,15 +63,11 @@ jobs:
6463
username: ${{ secrets.DOCKER_USERNAME }}
6564
password: ${{ secrets.DOCKER_PASSWORD }}
6665

67-
- uses: docker/setup-buildx-action@v2
68-
with:
69-
driver: docker
70-
driver-opts: |
71-
image=moby/buildkit:master
72-
network=host
66+
- name: Setup Blacksmith Builder
67+
uses: useblacksmith/setup-docker-builder@v1
7368

7469
- id: build
75-
uses: docker/build-push-action@v3
70+
uses: useblacksmith/build-push-action@v2
7671
with:
7772
context: .
7873
push: true
@@ -82,13 +77,14 @@ jobs:
8277

8378
merge_manifest:
8479
needs: [docker_x86_release, docker_arm_release]
85-
runs-on: ubuntu-latest
80+
runs-on: blacksmith-4vcpu-ubuntu-2404
8681
permissions:
8782
contents: read
8883
packages: write
8984
id-token: write
9085
steps:
91-
- uses: docker/setup-buildx-action@v2
86+
- name: Setup Blacksmith Builder
87+
uses: useblacksmith/setup-docker-builder@v1
9288

9389
- uses: docker/login-action@v2
9490
with:

.github/workflows/mirror.yml

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

1111
jobs:
1212
mirror:
13-
runs-on: ubuntu-latest
13+
runs-on: blacksmith-4vcpu-ubuntu-2404
1414
permissions:
1515
contents: read
1616
packages: write

.github/workflows/prod_build.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515

1616
jobs:
1717
release:
18-
runs-on: ubuntu-latest
18+
runs-on: blacksmith-4vcpu-ubuntu-2404
1919
outputs:
2020
published: ${{ steps.semantic.outputs.new_release_published }}
2121
version: ${{ steps.semantic.outputs.new_release_version }}
@@ -30,7 +30,7 @@ jobs:
3030

3131
docker_x86_release:
3232
needs: release
33-
runs-on: ubuntu-latest
33+
runs-on: blacksmith-4vcpu-ubuntu-2404
3434
if: needs.release.outputs.published == 'true'
3535
timeout-minutes: 120
3636
env:
@@ -47,21 +47,20 @@ jobs:
4747
type=raw,value=v${{ needs.release.outputs.version }}_${{ env.arch }}
4848
type=raw,value=latest_${{ env.arch }}
4949
50-
- uses: docker/setup-buildx-action@v2
50+
- name: Setup Blacksmith Builder
51+
uses: useblacksmith/setup-docker-builder@v1
5152

5253
- uses: docker/login-action@v2
5354
with:
5455
username: ${{ secrets.DOCKER_USERNAME }}
5556
password: ${{ secrets.DOCKER_PASSWORD }}
5657

5758
- id: build
58-
uses: docker/build-push-action@v3
59+
uses: useblacksmith/build-push-action@v2
5960
with:
6061
push: true
6162
tags: ${{ steps.meta.outputs.tags }}
6263
platforms: linux/${{ env.arch }}
63-
cache-from: type=gha
64-
cache-to: type=gha,mode=max
6564

6665
docker_arm_release:
6766
needs: release
@@ -89,15 +88,11 @@ jobs:
8988
username: ${{ secrets.DOCKER_USERNAME }}
9089
password: ${{ secrets.DOCKER_PASSWORD }}
9190

92-
- uses: docker/setup-buildx-action@v2
93-
with:
94-
driver: docker
95-
driver-opts: |
96-
image=moby/buildkit:master
97-
network=host
91+
- name: Setup Blacksmith Builder
92+
uses: useblacksmith/setup-docker-builder@v1
9893

9994
- id: build
100-
uses: docker/build-push-action@v3
95+
uses: useblacksmith/build-push-action@v2
10196
with:
10297
context: .
10398
push: true
@@ -107,13 +102,14 @@ jobs:
107102

108103
merge_manifest:
109104
needs: [release, docker_x86_release, docker_arm_release]
110-
runs-on: ubuntu-latest
105+
runs-on: blacksmith-4vcpu-ubuntu-2404
111106
permissions:
112107
contents: read
113108
packages: write
114109
id-token: write
115110
steps:
116-
- uses: docker/setup-buildx-action@v2
111+
- name: Setup Blacksmith Builder
112+
uses: useblacksmith/setup-docker-builder@v1
117113

118114
- uses: docker/login-action@v2
119115
with:
@@ -160,7 +156,7 @@ jobs:
160156
161157
update-branch-name:
162158
needs: [release, docker_x86_release, docker_arm_release, merge_manifest]
163-
runs-on: ubuntu-latest
159+
runs-on: blacksmith-4vcpu-ubuntu-2404
164160
steps:
165161
- name: Checkout branch
166162
uses: actions/checkout@v2

.github/workflows/prod_linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
format:
99
name: Formatting Checks
10-
runs-on: ubuntu-latest
10+
runs-on: blacksmith-4vcpu-ubuntu-2404
1111

1212
steps:
1313
- uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
jobs:
2727
tests:
2828
name: Tests
29-
runs-on: ubuntu-latest
29+
runs-on: blacksmith-8vcpu-ubuntu-2404
3030

3131
steps:
3232
- uses: actions/checkout@v2

.github/workflows/version_updated.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Default Checks
2020
jobs:
2121
versions_updated:
2222
name: Versions Updated
23-
runs-on: ubuntu-latest
23+
runs-on: blacksmith-4vcpu-ubuntu-2404
2424
steps:
2525
- name: Checkout code
2626
uses: actions/checkout@v3

test/realtime/nodes_test.exs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ defmodule Realtime.NodesTest do
1616
reject(&:syn.members/2)
1717
end
1818

19-
test "on existing tenant id, returns the node for the region using syn", %{
20-
tenant: tenant,
21-
region: region
22-
} do
19+
test "on existing tenant id, returns the node for the region using syn", %{tenant: tenant, region: region} do
2320
expected_nodes = [:tenant@closest1, :tenant@closest2]
2421

2522
expect(:syn, :members, fn RegionNodes, ^region ->

0 commit comments

Comments
 (0)