-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c771003
commit 4b35f14
Showing
1 changed file
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
name: Build docker image | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-action: | ||
build: | ||
name: Build the image | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
include: | ||
# All non supported by base image are commented | ||
# This is an example for base image alpine | ||
- { platform: "linux/arm64", platform-tag: "arm64" } | ||
- { platform: "linux/amd64", platform-tag: "amd64" } | ||
- { platform: "linux/arm/v7", platform-tag: "armv7" } | ||
- { platform: "linux/arm/v6", platform-tag: "armv6" } | ||
- { platform: "linux/ppc64le", platform-tag: "ppc64le" } | ||
#- { platform: "linux/riscv64", platform-tag: "riscv64" } | ||
- { platform: "linux/s390x", platform-tag: "s390x" } | ||
- { platform: "linux/386", platform-tag: "386" } | ||
#- { platform: "linux/mips64le", platform-tag: "mips64le" } | ||
#- { platform: "linux/mips64", platform-tag: "mips64" } | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
# https://github.com/docker/setup-qemu-action | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
# https://github.com/docker/setup-buildx-action | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build action image | ||
run: make docker-build | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
PLATFORM: "${{ matrix.platform }}" |