Skip to content

Commit

Permalink
Merge pull request #1 from msusky/docker-multi-arch-build
Browse files Browse the repository at this point in the history
Adds support for docker multi-arch image build
  • Loading branch information
cybernop authored Sep 18, 2024
2 parents 7ff21f7 + 0fe3cd0 commit 1efeb15
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
SUSHI_VERSION: "3.11.0"
TARGET_PLATFORMS: linux/amd64,linux/arm64

jobs:
node-base:
Expand All @@ -36,8 +37,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Adds static libs for multi-platform builds
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ env.TARGET_PLATFORMS }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -87,8 +94,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Adds static libs for multi-platform builds
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ env.TARGET_PLATFORMS }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -138,8 +151,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Adds static libs for multi-platform builds
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ env.TARGET_PLATFORMS }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down Expand Up @@ -190,8 +209,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

# Adds static libs for multi-platform builds
- name: Setup QEMU
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ env.TARGET_PLATFORMS }}

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
Expand Down

0 comments on commit 1efeb15

Please sign in to comment.