-
-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (34 loc) · 952 Bytes
/
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
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
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: Buildx
uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/Rocky.Dockerfile
push: true
tags: |
tlcfem/suanpan:latest
ghcr.io/tlcfem/suanpan:latest