From 4426e64e1c2d7f60c917f45c8384bae35af693e8 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 12 Dec 2024 02:07:52 +0100 Subject: [PATCH] [skip.all] Multi-arch image --- .github/workflows/docker-env.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-env.yml b/.github/workflows/docker-env.yml index 11a3f2ec..3467c65b 100644 --- a/.github/workflows/docker-env.yml +++ b/.github/workflows/docker-env.yml @@ -9,7 +9,7 @@ jobs: timeout-minutes: 240 strategy: matrix: - arch: [ amd64 ] + arch: [ amd64, arm64 ] steps: - name: Clone uses: actions/checkout@v4 @@ -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