Skip to content

Commit

Permalink
Add Arm images build to CI (#106)
Browse files Browse the repository at this point in the history
* Add Arm images build to  CI

* Do not load images, we just skip push

* Remove Arm + alpine platforms
  • Loading branch information
oleg-nenashev authored Jan 5, 2024
1 parent 2408eb8 commit 98f4d38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "main", "3.x" ]
branches: [ "main" ]
pull_request:
branches: [ "main", "3.x" ]
branches: [ "main" ]
workflow_dispatch:

jobs:
Expand All @@ -16,10 +16,24 @@ jobs:
- CONTEXT: .
TAGS:
- wiremock/wiremock:test
PLATFORMS:
- linux/amd64
- linux/arm64
- linux/arm/v7
- CONTEXT: alpine
TAGS:
- wiremock/wiremock:test-alpine
PLATFORMS:
- linux/amd64

steps:

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
image: tonistiigi/binfmt:latest
platforms: all

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -33,11 +47,12 @@ jobs:
# username: wiremock
# password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build Wiremock Docker image
- name: Build WireMock Docker image
uses: docker/build-push-action@v4
with:
context: ${{ matrix.versions.CONTEXT }}
load: true
platforms: ${{ join(matrix.versions.PLATFORMS, ',') }}
push: false
file: ${{ matrix.versions.CONTEXT }}/Dockerfile
tags: ${{ matrix.versions.TAGS[0] }}

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ jobs:
- ghcr.io/wiremock/wiremock:${{ needs.check-new-version.outputs.new_version }}-alpine
PLATFORMS:
- linux/amd64
- linux/arm64
- linux/arm/v7

steps:

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
if: ${{ matrix.versions.CONTEXT != 'alpine' }}
with:
image: tonistiigi/binfmt:latest
platforms: all
Expand Down

0 comments on commit 98f4d38

Please sign in to comment.