Skip to content

Commit

Permalink
Multi-arch image
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Dec 12, 2024
1 parent 5798bd0 commit 03927a1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/docker-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
timeout-minutes: 240
strategy:
matrix:
arch: [ amd64 ]
arch: [ amd64, arm64 ]
steps:
- name: Clone
uses: actions/checkout@v4
Expand All @@ -30,7 +30,22 @@ jobs:
file: ./Script/${{ matrix.arch }}/Rocky.Pre.Dockerfile
platforms: linux/${{ matrix.arch }}
push: true
tags: tlcfem/suanpan-env:latest
tags: tlcfem/suanpan-env:latest-{{ matrix.arch }}
ide-image-combine:
needs: ide-image-base
runs-on: self-hosted
steps:
- name: Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Buildx
uses: docker/setup-buildx-action@v3
- name: Combine
run: |
docker manifest create tlcfem/suanpan-env:latest --amend tlcfem/suanpan-env:latest-amd64 tlcfem/suanpan-env:latest-arm64
docker manifest push tlcfem/suanpan-env:latest
ide-image-cuda:
runs-on: self-hosted
timeout-minutes: 240
Expand Down

0 comments on commit 03927a1

Please sign in to comment.