Skip to content

Commit

Permalink
Merge pull request #9 from h5py/gha-update
Browse files Browse the repository at this point in the history
Try using official Docker Github actions to build image
  • Loading branch information
takluyver authored Sep 12, 2023
2 parents 3e852a9 + e9c5c10 commit c042c21
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,46 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Publish Image
uses: matootie/[email protected]
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
accessToken: ${{ secrets.GITHUB_TOKEN }}
imageName: manylinux2014_x86_64-hdf5
containerRegistry: true
contextName: ./Dockerfile_x86_64
file: ./Dockerfile_x86_64
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository_owner }}/manylinux2014_x86_64-hdf5

build_aarch64_wheels:
name: Build image for aarch64
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Publish Image
uses: matootie/[email protected]
- name: Build and push
uses: docker/build-push-action@v4
with:
accessToken: ${{ secrets.GITHUB_TOKEN }}
imageName: manylinux2014_aarch64-hdf5
containerRegistry: true
contextName: ./Dockerfile_aarch64
file: ./Dockerfile_aarch64
platforms: linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}/manylinux2014_aarch64-hdf5

0 comments on commit c042c21

Please sign in to comment.