-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.04 KB
/
main.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-xmrig
on:
push:
branches:
- 'main'
- 'master'
- 'dev'
paths-ignore:
- '**/README.md'
pull_request:
branches:
- '*'
schedule:
- cron: "0 0 */3 * *"
workflow_dispatch:
jobs:
image:
name: docker-xmrig-${{ matrix.distribution }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distribution: ["debian", "alpine", "ubuntu", "fedora", "cuda"] #Disable "archlinux"
steps:
- name: "📥 Checkout Code"
uses: actions/checkout@v2.3.4
with:
submodules: 'recursive'
fetch-depth: 0
- name: "🛠️ Docker QEMU"
run: make qemu
- name: "Loggin to hub.docker.com"
run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
- name: "🛠️ Build and 📤 Upload to hub.docker.com"
run: make ${{ matrix.distribution }}
- name: "✅ Tests"
run: docker run --rm bensuperpc/xmrig:${{ matrix.distribution }} ls
- name: "🧹 Clean"
run: make clean