-
Notifications
You must be signed in to change notification settings - Fork 11
124 lines (122 loc) · 3.62 KB
/
deploy.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Deploy containers
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- '.github/workflows/deploy.yml'
jobs:
build-nvidia:
strategy:
matrix:
os:
- "ubuntu20.04"
- "ubuntu22.04"
cuda:
- "11.7.1"
- "12.2.0"
lolminer:
- "1.52a"
- "1.53"
- "1.54"
- "1.56"
- "1.57"
- "1.58"
- "1.60"
- "1.61"
- "1.62"
- "1.63"
- "1.64"
- "1.65"
- "1.66"
- "1.67"
- "1.69"
- "1.70"
- "1.71"
- "1.72"
- "1.73"
- "1.74"
- "1.75"
- "1.76"
- "1.78"
- "1.79"
- "1.80"
- "1.81"
- "1.82"
runs-on: ubuntu-22.04
name: Deploy Nvidia Containers
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build and tag nvidia image
run: docker build -f Dockerfile --target nvidia --build-arg LOLMINER_VERSION=${{ matrix.lolminer }} --build-arg OS_VERSION=${{ matrix.os }} --build-arg CUDA_VERSION=${{ matrix.cuda }} -t compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }} .
- name: tag and push
run: |
docker push compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }}
docker tag compscidr/lolminer-docker:${{ matrix.os }}-cuda-${{ matrix.cuda }}-${{ matrix.lolminer }} compscidr/lolminer-docker:latest
docker push compscidr/lolminer-docker:latest
- name: Logout of Docker Hub
run: docker logout
build-amd:
strategy:
matrix:
os:
- "ubuntu20.04"
- "ubuntu22.04"
amd_driver:
- "21.30"
- "22.20"
lolminer:
- "1.52a"
- "1.53"
- "1.54"
- "1.56"
- "1.57"
- "1.58"
- "1.60"
- "1.61"
- "1.62"
- "1.63"
- "1.64"
- "1.65"
- "1.66"
- "1.67"
- "1.69"
- "1.70"
- "1.71"
- "1.72"
- "1.73"
- "1.74"
- "1.75"
- "1.76"
- "1.78"
- "1.79"
- "1.80"
- "1.81"
- "1.82"
exclude:
- os: "ubuntu22.04"
- amd_driver: "21.30"
runs-on: ubuntu-22.04
name: Deploy AMD Containers
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: build and tag amd image
run: docker build -f Dockerfile --target amd --build-arg LOLMINER_VERSION=${{ matrix.lolminer }} --build-arg OS_VERSION=${{ matrix.os }} --build-arg AMD_DRIVER=${{ matrix.amd_driver }} -t compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }} .
- name: tag and push
run: |
docker push compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }}
docker tag compscidr/lolminer-docker:${{ matrix.os }}-amd-${{ matrix.amd_driver }}-${{ matrix.lolminer }} compscidr/lolminer-docker:latest
docker push compscidr/lolminer-docker:latest
- name: Logout of Docker Hub
run: docker logout