-
Notifications
You must be signed in to change notification settings - Fork 3
175 lines (172 loc) · 5.74 KB
/
build.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
name: build
on:
push:
workflow_dispatch:
schedule:
- cron: '0 23 * * *'
env:
# default user for pushing
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
# default token (password) for pushing
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
# Prefix for all pushed images,
IMAGE_PRE: ${{ github.ref_name != 'master' && 'dev-' || '' }}
jobs:
docker-python-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}python-base
path: docker/python-base
dockerfile: docker/python-base/Dockerfile
baseimage: mambaorg/micromamba:1-bullseye
build-ffmpeg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: ffmpeg
tagversion: 4.2.1
path: docker/builders/ffmpeg
dockerfile: docker/builders/ffmpeg/Dockerfile
baseimage: mambaorg/micromamba:1-bullseye
additional_buildargs: ffmpeg_version=4.2.1
build-ffmpeg-cuda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: ffmpeg-cuda
tagversion: 4.2.1
baseimage: mambaorg/micromamba:1-bullseye
path: docker/builders/ffmpeg
dockerfile: docker/builders/ffmpeg/Dockerfile
additional_buildargs: |-
ffmpeg_version=4.2.1
with_cuda=true
build-proxychains:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: proxychains
tagversion: 4.14
path: docker/builders/proxychains
dockerfile: docker/builders/proxychains/Dockerfile
baseimage: debian:bullseye-slim
additional_buildargs: proxychains_version=4.14
build-opensc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: opensc
tagversion: 0.20.0
path: docker/builders/opensc
dockerfile: docker/builders/opensc/Dockerfile
baseimage: debian:bullseye-slim
additional_buildargs: opensc_version=0.20.0
build-pytorch:
needs:
- docker-python-base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: pytorch
tagversion: 1.11.0_torchvision-0.12.0
baseimage: moonvision/${{ env.IMAGE_PRE }}python-base
path: docker/builders/pytorch
dockerfile: docker/builders/pytorch/Dockerfile
additional_buildargs: |-
pytorch_tag=v1.11.0
torchvision_tag=v0.12.0
prebuilt=false
build-pytorch-cuda:
needs:
- docker-python-base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}custom-builds
additionaltag: pytorch-cuda
tagversion: 1.11.0_torchvision-0.12.0
baseimage: moonvision/${{ env.IMAGE_PRE }}python-base
path: docker/builders/pytorch
dockerfile: docker/builders/pytorch/Dockerfile
additional_buildargs: |-
pytorch_tag=v1.11.0
torchvision_tag=v0.12.0
prebuilt=true
with_cuda=true
docker-moonbox-mini:
needs:
- docker-python-base
- build-ffmpeg
- build-pytorch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}moonbox
additionaltag: mini
path: docker/moonbox
dockerfile: docker/moonbox/Dockerfile
baseimage: moonvision/${{ env.IMAGE_PRE }}python-base:latest
additional_buildargs: |-
ffmpeg_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:ffmpeg-4.2.1
pytorch_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:pytorch-1.11.0_torchvision-0.12.0
docker-moonbox-genicam:
needs:
- docker-python-base
- build-ffmpeg
- build-pytorch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}moonbox
additionaltag: genicam
path: docker/moonbox
dockerfile: docker/moonbox/Dockerfile
baseimage: moonvision/${{ env.IMAGE_PRE }}python-base:latest
additional_buildargs: |-
with_genicam=true
ffmpeg_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:ffmpeg-4.2.1
pytorch_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:pytorch-1.11.0_torchvision-0.12.0
docker-moonbox-cuda:
needs:
- docker-python-base
- build-ffmpeg-cuda
- build-pytorch-cuda
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/create-docker
with:
imagename: moonvision/${{ env.IMAGE_PRE }}moonbox
additionaltag: cuda
path: docker/moonbox
dockerfile: docker/moonbox/Dockerfile
baseimage: moonvision/${{ env.IMAGE_PRE }}python-base:latest
additional_buildargs: |-
with_genicam=false
with_cuda=true
ffmpeg_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:ffmpeg-cuda-4.2.1
pytorch_from_docker=moonvision/${{ env.IMAGE_PRE }}custom-builds:pytorch-cuda-1.11.0_torchvision-0.12.0