Skip to content

Commit c472509

Browse files
authored
fix: arm64 docker release
1 parent 2bf0a6a commit c472509

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/docker-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 1
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
1618
- name: Setup faas-cli
1719
run: |
1820
curl -sSL https://cli.openfaas.com | sh
1921
# TODO: Check if this is doable with the docker login action
20-
- name: Docker Login
22+
- name: GHCR Login
2123
env:
2224
GHCR_AUTH_TOKEN: ${{ secrets.GHCR_AUTH_TOKEN }}
2325
run: |
@@ -30,9 +32,8 @@ jobs:
3032
git clone https://github.com/tschaefer/openfaas-perl-mojo-template -b full-mojo _template
3133
mv _template/template .
3234
rm -rf _template
33-
# TODO: Fix and add arm64 build. cpanm fails with: `gzip: stdin: not in gzip format`
3435
- name: Build and Push
3536
run: |
3637
faas-cli publish \
37-
--platforms linux/amd64 \
38+
--platforms linux/amd64,linux/arm64 \
3839
--build-label org.opencontainers.image.source=https://github.com/tschaefer/openfaas-minio-notify-function

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ functions:
66
minio-notify:
77
lang: perl-mojo
88
handler: ./minio-notify
9-
image: ghcr.io/tschaefer/minio-notify:0.0.1
9+
image: ghcr.io/tschaefer/minio-notify:0.0.2
1010
build_args:
1111
ADDITIONAL_PACKAGES: "build-essential"
1212
ADDITIONAL_CPAN_PACKAGES: "Authen::SASL Email::Sender"

0 commit comments

Comments
 (0)