Merge #6 - Add the blocklist feature to the container image #77
This file contains hidden or 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
| name: Build docker image | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| tags-ignore: | |
| - "*" | |
| jobs: | |
| build-image: | |
| name: Build the image | |
| runs-on: ${{ matrix.run-on }} | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 4 | |
| matrix: | |
| include: | |
| - { platform: "linux/386", run-on: "ubuntu-22.04", use-qemu: true } | |
| - { platform: "linux/amd64", run-on: "ubuntu-22.04", use-qemu: false } | |
| - { platform: "linux/ppc64le", run-on: "ubuntu-22.04", use-qemu: true } | |
| - { platform: "linux/s390x", run-on: "ubuntu-22.04", use-qemu: true } | |
| - { platform: "linux/riscv64", run-on: "ubuntu-22.04", use-qemu: true } | |
| # Do not use arm to build armv6, it is much slower | |
| - { platform: "linux/arm/v6", run-on: "ubuntu-22.04", use-qemu: true } | |
| - { platform: "linux/arm/v7", run-on: "ubuntu-22.04-arm", use-qemu: true } | |
| - { platform: "linux/arm64/v8", run-on: "ubuntu-22.04-arm", use-qemu: false } | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # https://github.com/docker/setup-qemu-action | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| if: ${{ matrix.use-qemu }} | |
| # https://github.com/docker/setup-buildx-action | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build docker image | |
| run: make build-alpine | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| PLATFORM: ${{ matrix.platform }} | |
| - name: Test docker image | |
| run: make test-alpine | |
| env: | |
| PLATFORM: ${{ matrix.platform }} | |
| DOCKER_DEFAULT_PLATFORM: ${{ matrix.platform }} |