Skip to content

Commit

Permalink
Build and push images with linux/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Jan 10, 2025
1 parent e4b550a commit a8f3f91
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ env:
releasev0: "0.7.24"

jobs:

matrix-build:
strategy:
fail-fast: false
Expand All @@ -44,17 +43,22 @@ jobs:
contents: read
packages: write
steps:

- name: Check out code
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker
uses: docker/setup-docker-action@v4
with:
driver: docker
daemon-config: |
{
"debug": true,
"features": {
"containerd-snapshotter": true
}
}
- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down Expand Up @@ -178,12 +182,12 @@ jobs:
- name: Build and push v0
if: ${{ matrix.image_dir != 'coffea-base' }}
uses: docker/build-push-action@v5
uses: build-push-action@v5
with:
platforms: linux/amd64
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.tags.outputs.tags }}
context: ${{ matrix.image_dir }}
platforms: linux/amd64,linux/arm64
file: ${{ matrix.image_dir }}/Dockerfile.${{ matrix.distro }}
build-args: |
python=${{ matrix.python }}
Expand All @@ -193,10 +197,10 @@ jobs:
if: ${{ matrix.image_dir == 'coffea-base' }}
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.tags.outputs.tags }}
context: ${{ matrix.image_dir }}
platforms: linux/amd64,linux/arm64
file: ${{ matrix.image_dir }}/Dockerfile.${{ matrix.distro }}
build-args: |
python=${{ matrix.python }}
Expand Down

0 comments on commit a8f3f91

Please sign in to comment.