-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
68 lines (61 loc) · 1.74 KB
/
.gitlab-ci.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
image: docker:stable
services:
- docker:stable-dind
variables:
REPOSITORY: "aparapi/aparapi"
VERSION: "3.0.0"
before_script:
- echo "${DOCKER_TOKEN}" | docker login --username "${DOCKER_USER}" --password-stdin
stages:
- deploy
amdgpu:
stage: deploy
script:
- if [ $CI_COMMIT_REF_NAME == "develop" ]; then
REV="git";
elif [ $CI_COMMIT_REF_NAME == "master" ]; then
REV="latest";
else
REV="$CI_COMMIT_REF_NAME";
fi
- docker build --network=host --pull -t "${REPOSITORY}-amdgpu:${REV}"
--no-cache
--build-arg "aparapiver=${VERSION}"
"amdgpu/"
- docker push "${REPOSITORY}-amdgpu"
tags:
- dind
nvidia:
stage: deploy
script:
- if [ $CI_COMMIT_REF_NAME == "develop" ]; then
REV="git";
elif [ $CI_COMMIT_REF_NAME == "master" ]; then
REV="latest";
else
REV="$CI_COMMIT_REF_NAME";
fi
- docker build --network=host --pull -t "${REPOSITORY}-nvidia:${REV}"
--no-cache
--build-arg "aparapiver=${VERSION}"
"nvidia/"
- docker push "${REPOSITORY}-nvidia"
tags:
- dind
pocl:
stage: deploy
script:
- if [ $CI_COMMIT_REF_NAME == "develop" ]; then
REV="git";
elif [ $CI_COMMIT_REF_NAME == "master" ]; then
REV="latest";
else
REV="$CI_COMMIT_REF_NAME";
fi
- docker build --network=host --pull -t "${REPOSITORY}-pocl:${REV}"
--no-cache
--build-arg "aparapiver=${VERSION}"
"pocl/"
- docker push "${REPOSITORY}-pocl"
tags:
- dind