forked from conda-forge/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
114 lines (96 loc) · 3.76 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: generic
matrix:
include:
- os: linux
env:
- DOCKERIMAGE=linux-anvil-comp7
- DOCKERTAG=latest
- os: linux
env:
- DOCKERIMAGE=linux-anvil-comp7
- DOCKERTAG=jnlp-slave
- os: linux
env:
- DOCKERIMAGE=linux-anvil-comp9
- DOCKERTAG=latest
- os: linux
env:
- DOCKERIMAGE=linux-anvil-cos7-x86_64
- DOCKERTAG=latest
- os: linux
env:
- DOCKERIMAGE=linux-anvil-ppc64le
- DOCKERTAG=latest
- os: linux
env:
- DOCKERIMAGE=linux-anvil-aarch64
- DOCKERTAG=latest
- os: linux
env:
- DOCKERIMAGE=linux-anvil-armv7l
- DOCKERTAG=latest
- 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=miniforge3
- DOCKERTAG=latest
env:
global:
secure: "nM8OaFilQkH14wzD1S6DTGejjo3yL/q/1dpz7144Kw68s8FVqW0zsxCC6960ieokY2LutGSv16qTiIFxnRZnHPCXt7X2MhxcagX8IcMu62DWe2jgqwho0hPI65N/bQYLW1l23e9tjKQxWFZopM4Oyzm6TBqlzibTdbPuQI+YB3RBY0dlkIlupPIYtiNlLRR/HnOyyUny/hg3Z65GWeVpXhiMPqXLlfliTiQ31JgBaNuXiP3/ruSCDeyRPWx62IcPGJ1xVSXL3tvkEI2TpGVCsraKCSbgINhm3AHjQ+8ST6GPMxaOaHrKZzssKJpsZhz1dzWINXTLOQ5LrKtBVwfaevFxDmPEr9RcVlzwAAyuWugCyV4Z6NSt/j2Qqw5qGaiiDHyBH0FMmBgzlPzLZ4JKFsZ68aRkc2qV0MeN0YJRwcQ0EnXRULrcwReBztDHZwixSxqlPpQUwbRr7ne05rBjVoMTKaEhyHPO+KYSwQB1wiQgILBtlP/5ofsYc9Eb46m5JJJhJxuLythKpW9mMqd/US4rQrgEHQ/QRIRYwzGnKf/5WXV3W2o4C9QZpH5Da3J7jOLlqxIY5I+Dv9eEk7XxhT7UaEo7C9tmzjaL2D0yrzPnOnPQhMpmCVNWqdTp1eLcIASKSPbmzz8MuYB5yg48wjXWvDIRBQ6hJyuKHhNGE9k="
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@|condaforge/${DOCKERIMAGE}|" jnlp-slave/Dockerfile.in > $DOCKERIMAGE/Dockerfile
fi
- docker build --build-arg CUDA_VER -t condaforge/$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 condaforgebot -p $DH_PASSWORD && docker push condaforge/$DOCKERIMAGE:$DOCKERTAG