Skip to content

Commit b9fc444

Browse files
ci: publish amd64 and arm64 images (#713)
1 parent ae4e70e commit b9fc444

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,44 @@ env:
99
IMAGE_NAME: ${{ github.repository }}
1010
jobs:
1111
docker:
12-
strategy:
13-
matrix:
14-
runner: [ubuntu-latest, ubuntu-latest-arm64]
15-
runs-on: ${{ matrix.runner }}
12+
runs-on: ubuntu-latest
1613
permissions:
1714
contents: read
1815
packages: write
1916
steps:
2017
- name: Checkout repository
2118
uses: actions/checkout@v4
19+
2220
- name: Set up Docker Buildx
2321
uses: docker/setup-buildx-action@v3
22+
2423
- name: Log in to GitHub Container Registry
2524
uses: docker/login-action@v3
2625
with:
2726
registry: ${{ env.REGISTRY }}
2827
username: ${{ github.actor }}
2928
password: ${{ secrets.GITHUB_TOKEN }}
29+
3030
- name: Build and push hyperion-proxy
3131
uses: docker/build-push-action@v5
3232
with:
3333
context: .
3434
push: true
3535
target: hyperion-proxy
36+
platforms: linux/amd64,linux/arm64
3637
tags: |
3738
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:latest
3839
${{ env.REGISTRY }}/${{ github.repository }}/hyperion-proxy:${{ github.sha }}
3940
cache-from: type=gha
4041
cache-to: type=gha,mode=max
42+
4143
- name: Build and push tag
4244
uses: docker/build-push-action@v5
4345
with:
4446
context: .
4547
push: true
4648
target: tag
49+
platforms: linux/amd64,linux/arm64
4750
tags: |
4851
${{ env.REGISTRY }}/${{ github.repository }}/tag:latest
4952
${{ env.REGISTRY }}/${{ github.repository }}/tag:${{ github.sha }}

0 commit comments

Comments
 (0)