-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (41 loc) · 1.16 KB
/
docker-dev.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
name: Docker Latest
on:
push:
branches: [ dev ]
jobs:
linux:
if: ${{ !contains(github.event.head_commit.message, '[skip.all]') }}
runs-on: self-hosted
timeout-minutes: 60
strategy:
matrix:
arch: [ amd64 ]
steps:
- name: Clone
uses: actions/checkout@v4
- name: Login Docker
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 ${{ matrix.arch }}
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/${{ matrix.arch }}/Rocky.Dockerfile
platforms: linux/${{ matrix.arch }}
push: true
tags: |
tlcfem/suanpan:latest
ghcr.io/tlcfem/suanpan:latest