Skip to content

Commit 30b411f

Browse files
authored
Build on Github ARM (#4313)
1 parent 212ac44 commit 30b411f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/build-backend.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
name: Build
11-
runs-on: [self-hosted]
11+
runs-on: ubuntu-24.04-arm
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
@@ -36,6 +36,6 @@ jobs:
3636
provenance: false
3737
push: true
3838
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pycon-backend:arm-${{ inputs.githash }}
39-
cache-from: type=local,src=/tmp/.buildx-cache
40-
cache-to: type=local,dest=/tmp/.buildx-cache
39+
cache-from: type=gha
40+
cache-to: type=gha,mode=max
4141
platforms: linux/arm64

.github/workflows/build-base-pretix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
build:
1515
name: Build
16-
runs-on: [self-hosted]
16+
runs-on: ubuntu-24.04-arm
1717
permissions:
1818
contents: read
1919
packages: write
@@ -40,6 +40,6 @@ jobs:
4040
provenance: false
4141
push: true
4242
tags: ghcr.io/pythonitalia/pycon/base-pretix:${{ inputs.version }}
43-
cache-from: type=local,src=/tmp/.buildx-cache
44-
cache-to: type=local,dest=/tmp/.buildx-cache
43+
cache-from: type=gha
44+
cache-to: type=gha,mode=max
4545
platforms: linux/arm64

.github/workflows/build-frontend.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
name: Build
14-
runs-on: [self-hosted]
14+
runs-on: ubuntu-24.04-arm
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
@@ -51,8 +51,8 @@ jobs:
5151
provenance: false
5252
push: true
5353
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/${{ inputs.tf_environment }}-pycon-frontend:${{ inputs.githash }}
54-
cache-from: type=local,src=/tmp/.buildx-cache
55-
cache-to: type=local,dest=/tmp/.buildx-cache
54+
cache-from: type=gha
55+
cache-to: type=gha,mode=max
5656
platforms: linux/arm64
5757
build-args: |
5858
API_URL_SERVER=https://${{ fromJSON('["pastaporto-", ""]')[github.ref == 'refs/heads/main'] }}admin.pycon.it

.github/workflows/build-pretix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build:
1010
name: Build pretix
11-
runs-on: [self-hosted]
11+
runs-on: ubuntu-24.04-arm
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
@@ -34,6 +34,6 @@ jobs:
3434
provenance: false
3535
push: true
3636
tags: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/pythonit/pretix:arm-${{ inputs.githash }}
37-
cache-from: type=local,src=/tmp/.buildx-cache
38-
cache-to: type=local,dest=/tmp/.buildx-cache
37+
cache-from: type=gha
38+
cache-to: type=gha,mode=max
3939
platforms: linux/arm64

0 commit comments

Comments
 (0)