Skip to content

Commit 8e802fd

Browse files
authored
ci: arm64 (#47)
1 parent 71ab81b commit 8e802fd

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,28 @@ on:
1010

1111
env:
1212
REGISTRY: ghcr.io
13-
IMAGE_NAME: 'bcdevices/zephyr'
13+
IMAGE_NAME: 'bcdevices/zephyr'
1414

1515
jobs:
1616
build:
17-
1817
name: build-and-push-image
1918
runs-on:
2019
group: zephyr-builds
2120
permissions:
2221
contents: read
2322
packages: write
24-
# This is used to complete the identity challenge
25-
# with sigstore/fulcio when running outside of PRs.
26-
#id-token: write
2723

2824
steps:
2925
- name: Checkout repository
3026
uses: actions/checkout@v4
3127

32-
# Workaround: https://github.com/docker/build-push-action/issues/461
28+
# Enable QEMU for cross-platform builds
29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
3332
- name: Setup Docker buildx
3433
uses: docker/setup-buildx-action@v3
3534

36-
# Login against a Docker registry except on PR
37-
# https://github.com/docker/login-action
3835
- name: Log into registry ${{ env.REGISTRY }}
3936
if: github.event_name != 'pull_request'
4037
uses: docker/login-action@v3
@@ -43,25 +40,12 @@ jobs:
4340
username: ${{ github.actor }}
4441
password: ${{ secrets.GITHUB_TOKEN }}
4542

46-
# Extract metadata (tags, labels) for Docker
47-
# https://github.com/docker/metadata-action
4843
- name: Extract Docker metadata
4944
id: meta
5045
uses: docker/metadata-action@v5
5146
with:
5247
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
53-
## generate Docker tags based on the following events/attributes
54-
#tags: |
55-
# type=schedule
56-
# type=ref,event=branch
57-
# type=ref,event=pr
58-
# type=semver,pattern={{version}}
59-
# type=semver,pattern={{major}}.{{minor}}
60-
# type=semver,pattern={{major}}
61-
# type=sha
6248

63-
# Build and push Docker image with Buildx (don't push on PR)
64-
# https://github.com/docker/build-push-action
6549
- name: Build and push Docker image
6650
id: build-and-push
6751
uses: docker/build-push-action@v5
@@ -74,3 +58,4 @@ jobs:
7458
labels: ${{ steps.meta.outputs.labels }}
7559
cache-from: type=gha
7660
cache-to: type=gha,mode=max
61+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)