Skip to content

Commit bcfaffc

Browse files
committed
Move ARM64 image build to manual workflow
1 parent 3c75db3 commit bcfaffc

2 files changed

Lines changed: 50 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ jobs:
9494
steps:
9595
- uses: actions/checkout@v4
9696

97-
- name: Set up QEMU
98-
uses: docker/setup-qemu-action@v3
99-
10097
- name: Set up Docker Buildx
10198
uses: docker/setup-buildx-action@v3
10299

@@ -121,7 +118,7 @@ jobs:
121118
with:
122119
context: .
123120
push: true
124-
platforms: linux/amd64,linux/arm64
121+
platforms: linux/amd64
125122
tags: ${{ steps.meta.outputs.tags }}
126123
labels: ${{ steps.meta.outputs.labels }}
127124
cache-from: type=gha

.github/workflows/docker-arm64.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Docker ARM64
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
docker-arm64:
8+
name: Docker Build & Push ARM64
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Docker metadata
30+
id: meta
31+
uses: docker/metadata-action@v5
32+
with:
33+
images: ghcr.io/${{ github.repository_owner }}/personal-assistant
34+
tags: |
35+
type=raw,value=arm64-latest
36+
type=sha,prefix=arm64-,format=short
37+
38+
- name: Build and push ARM64
39+
uses: docker/build-push-action@v6
40+
with:
41+
context: .
42+
push: true
43+
platforms: linux/arm64
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}
46+
cache-from: type=gha,scope=arm64
47+
cache-to: type=gha,mode=max,scope=arm64
48+
build-args: |
49+
ASSETS_CACHEBUST=${{ github.sha }}

0 commit comments

Comments
 (0)