-
-
Notifications
You must be signed in to change notification settings - Fork 10
53 lines (53 loc) · 1.47 KB
/
docker-env.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Docker Base Image
on:
schedule:
- cron: '0 5 2 * *'
workflow_dispatch:
jobs:
ide-image-base:
runs-on: self-hosted
timeout-minutes: 240
strategy:
matrix:
arch: [ amd64, arm64 ]
steps:
- name: Clone
uses: actions/checkout@v4
- name: Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: QEMU
if: ${{ matrix.arch == 'arm64' }}
uses: docker/setup-qemu-action@v3
- name: Buildx
uses: docker/setup-buildx-action@v3
- name: Base ${{ matrix.arch }}
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/Rocky.Pre.${{ matrix.arch }}.Dockerfile
platforms: linux/${{ matrix.arch }}
push: true
tags: tlcfem/suanpan-env:latest
ide-image-cuda:
runs-on: self-hosted
timeout-minutes: 240
steps:
- name: Clone
uses: actions/checkout@v4
- 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: CUDA
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/Rocky.Pre.CUDA.Dockerfile
push: true
tags: tlcfem/suanpan-env-cuda:latest