-
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
473ea45
commit 5b64a79
Showing
4 changed files
with
67 additions
and
25 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,18 +1,39 @@ | ||
name: Build and test the docker image | ||
name: Build docker image | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
tags-ignore: | ||
- "*" | ||
|
||
jobs: | ||
build-docker-image: | ||
name: Build and test image | ||
build-image: | ||
name: Build the image | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
platform: ["linux/386", "linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/ppc64le", "linux/s390x"] | ||
steps: | ||
- name: Checkout 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 docker image | ||
run: make build-alpine | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
PLATFORM: ${{ matrix.platform }} | ||
|
||
- name: Test docker image | ||
if: ${{ matrix.platform == 'linux/amd64' }} | ||
run: make test-alpine |
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
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
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