Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Dec 13, 2024
1 parent dbed5e7 commit 3a6c88a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/docker-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,47 @@ on:
push:
branches: [ master ]
jobs:
linux:
linux-base:
if: ${{ !contains(github.event.head_commit.message, '[skip.all]') }}
runs-on: self-hosted
timeout-minutes: 60
timeout-minutes: 600
strategy:
matrix:
arch: [ amd64, arm64 ]
steps:
- name: Clone
uses: actions/checkout@v4
- name: Login Docker
- name: Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login GitHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: QEMU
if: ${{ matrix.arch == 'arm64' }}
uses: docker/setup-qemu-action@v3
- name: Buildx
uses: docker/setup-buildx-action@v3
- name: Build
- name: Base ${{ matrix.arch }}
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/amd64/Rocky.Dockerfile
file: ./Script/${{ matrix.arch }}/Rocky.Dockerfile
platforms: linux/${{ matrix.arch }}
provenance: false
push: true
tags: |
tlcfem/suanpan:stable
tags: tlcfem/suanpan:stable-${{ matrix.arch }}
linux-combine:
needs: linux-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:stable --amend tlcfem/suanpan:stable-amd64 tlcfem/suanpan:stable-arm64
docker manifest push tlcfem/suanpan:stable
2 changes: 1 addition & 1 deletion Script/arm64/Rocky.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN cd suanPan && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -D
FROM rockylinux:9 AS runtime

RUN dnf install -y epel-release && crb enable
RUN dnf install -y libgomp hdf5 libglvnd
RUN dnf install -y libgomp hdf5 libX11

COPY --from=build /tbb-build /tbb-build

Expand Down

0 comments on commit 3a6c88a

Please sign in to comment.