Skip to content

Commit e05d285

Browse files
committed
fix(docker): use ARM architecture for AWS CLI v2 install
1 parent b297a9d commit e05d285

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,33 @@ jobs:
2626
restore-keys: |
2727
${{ runner.os }}-node-
2828
- run: npm ci
29-
- name: Build Docker images
29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
- name: Build and push multi-arch Docker images
3034
run: |
3135
echo "${{ secrets.GHCR_PAT }}" > github_token
32-
export DOCKER_BUILDKIT=1
33-
docker build --load --platform linux/arm64 --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:tiny -f tiny.Dockerfile .
34-
docker build --load --platform linux/arm64 --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:slim -f slim.Dockerfile .
35-
docker build --load --platform linux/arm64 --progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime:full -f Dockerfile .
36+
docker login ghcr.io -u skunxicat --password-stdin < github_token
37+
docker buildx create --use
38+
docker buildx build \
39+
--platform linux/arm64 \
40+
--secret id=github_token,src=github_token \
41+
--tag ghcr.io/ql4b/lambda-shell-runtime:tiny \
42+
--file tiny.Dockerfile \
43+
--push .
44+
docker buildx build \
45+
--platform linux/arm64 \
46+
--secret id=github_token,src=github_token \
47+
--tag ghcr.io/ql4b/lambda-shell-runtime:slim \
48+
--file slim.Dockerfile \
49+
--push .
50+
docker buildx build \
51+
--platform linux/arm64 \
52+
--secret id=github_token,src=github_token \
53+
--tag ghcr.io/ql4b/lambda-shell-runtime:full \
54+
--file Dockerfile \
55+
--push .
3656
shell: bash
3757
- name: Log in to GHCR
3858
run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u skunxicat --password-stdin

0 commit comments

Comments
 (0)