Skip to content

Commit e72554e

Browse files
committed
DEV: switch amd64 builds to debian-12 runners
We can use our self-hosted action/runner machines to build the amd64 Docker images, falling back to the Github action/runner machines for the arm64 builds. Additionally, simplify the expression for how arm runners are selected. The cost savings from switching to self-hosted runners dwarfs the increase in 8core vs 2core arm runners.
1 parent e44bc08 commit e72554e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ jobs:
2727
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
2828
2929
base:
30-
# `ubuntu-22.04-8core` for arch amd64 non-scheduled builds
31-
# `ubuntu-22.04` for arch amd64 scheduled builds
32-
# `ubuntu-22.04-8core-arm` for arch arm64 non-scheduled builds
33-
# `ubuntu-22.04-2core-arm` for arch arm64 scheduled builds
34-
runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || (( matrix.arch == 'arm64' && '-2core' ) || '') }}${{ (matrix.arch == 'arm64') && '-arm' || '' }}
30+
# `debian-12` for amd64 builds
31+
# `ubuntu-22.04-8core-arm` for arm64 builds
32+
runs-on: ${{ (matrix.arch == 'amd64' && 'debian-12') || 'ubuntu-22.04-8core-arm' }}
3533
strategy:
3634
matrix:
3735
arch: [amd64, arm64]
@@ -210,7 +208,7 @@ jobs:
210208
docker manifest push discourse/discourse_dev:${{ env.TIMESTAMP }}
211209
docker manifest push discourse/discourse_dev:release
212210
test:
213-
runs-on: ubuntu-22.04${{ ((github.event_name != 'schedule') && '-8core') || '' }}
211+
runs-on: debian-12
214212
timeout-minutes: 30
215213
needs: base
216214
defaults:

0 commit comments

Comments
 (0)