forked from conda-forge/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
99 lines (85 loc) · 2.77 KB
/
.travis.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
language: generic
env:
global:
- DH_USER=omniamd
- DH_UPLOADER=jaimergp
matrix:
include:
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=8.0
- CUDA_VER=8.0
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=9.0
- CUDA_VER=9.0
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=9.1
- CUDA_VER=9.1
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=9.2
- CUDA_VER=9.2
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=10.0
- CUDA_VER=10.0
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=10.1
- CUDA_VER=10.1
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cuda
- DOCKERTAG=10.2
- CUDA_VER=10.2
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cos7-cuda
- DOCKERTAG=11.0
- CUDA_VER=11.0
before_install:
# Enable experimental features (needed for squash)
- sudo cp docker_daemon_config.json /etc/docker/daemon.json
- sudo service docker restart
- docker info
- |
if [ "$(uname -m)" = "x86_64" ]; then
docker run --rm --privileged multiarch/qemu-user-static:register --reset
fi
export QEMU_STATIC_VERSION=v3.1.0-3
qemu_ppc64le_sha256=d018b96e20f7aefbc50e6ba93b6cabfd53490cdf1c88b02e7d66716fa09a7a17
qemu_aarch64_sha256=a64b39b8ce16e2285cb130bcba7143e6ad2fe19935401f01c38325febe64104b
qemu_arm_sha256=f4184c927f78d23d199056c5b0b6d75855e298410571d65582face3159117901
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-ppc64le-static
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-aarch64-static
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_STATIC_VERSION}/qemu-arm-static
sha256sum qemu-ppc64le-static | grep -F "${qemu_ppc64le_sha256}"
sha256sum qemu-aarch64-static | grep -F "${qemu_aarch64_sha256}"
sha256sum qemu-arm-static | grep -F "${qemu_aarch64_sha256}"
chmod +x qemu-ppc64le-static
chmod +x qemu-aarch64-static
chmod +x qemu-arm-static
install:
- |
if [[ $DOCKERTAG == "jnlp-slave" ]]
then
sed "s|@BASE_IMAGE@|${DH_USER}/${DOCKERIMAGE}|" jnlp-slave/Dockerfile.in > $DOCKERIMAGE/Dockerfile
fi
- docker build --build-arg CUDA_VER -t ${DH_USER}/$DOCKERIMAGE:$DOCKERTAG -f $DOCKERIMAGE/Dockerfile --no-cache --squash .
script:
- |
if [[ $DOCKERTAG != "jnlp-slave" ]]
then
./.circleci/run_docker_build.sh
fi
deploy:
provider: script
script: docker login -u ${DH_UPLOADER} -p $DH_PASSWORD && docker push ${DH_USER}/$DOCKERIMAGE:$DOCKERTAG