Skip to content

Commit 7fb86ba

Browse files
authored
Merge pull request #21 from alphagov/dj-maisy/arm-builds
Switch Image Builds to ARM64
2 parents 4bb3194 + 4be7211 commit 7fb86ba

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-image.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
jobs:
2727
build_and_push:
2828
name: Build and push dynamic and static harvest source images
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-24.04-arm
3030
permissions:
3131
packages: write
3232
env:
@@ -42,31 +42,37 @@ jobs:
4242
with:
4343
ref: ${{ inputs.gitRef || github.ref }}
4444
show-progress: false
45+
- name: Setup Docker BuildX
46+
uses: docker/setup-buildx-action@v3
4547
- name: Build dynamic
4648
if: ${{ inputs.buildType == 'build_only' }}
4749
uses: docker/build-push-action@v6
4850
with:
4951
context: ./dynamic
52+
platforms: linux/arm64
5053
push: false
5154
tags: ghcr.io/alphagov/dynamic-ckan-harvest-source:${{ env.tag }}
5255
- name: Build static
5356
if: ${{ inputs.buildType == 'build_only' }}
5457
uses: docker/build-push-action@v6
5558
with:
5659
context: ./static
60+
platforms: linux/arm64
5761
push: false
5862
tags: ghcr.io/alphagov/static-ckan-harvest-source:${{ env.tag }}
5963
- name: Build and push dynamic
6064
if: ${{ inputs.buildType == 'build_push' || github.ref == 'refs/heads/main' }}
6165
uses: docker/build-push-action@v6
6266
with:
6367
context: ./dynamic
68+
platforms: linux/arm64
6469
push: true
6570
tags: ghcr.io/alphagov/dynamic-ckan-harvest-source:${{ env.tag }}
6671
- name: Build and push static
6772
if: ${{ inputs.buildType == 'build_push' || github.ref == 'refs/heads/main' }}
6873
uses: docker/build-push-action@v6
6974
with:
7075
context: ./static
76+
platforms: linux/arm64
7177
push: true
7278
tags: ghcr.io/alphagov/static-ckan-harvest-source:${{ env.tag }}

0 commit comments

Comments
 (0)