File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,9 @@ jobs:
115
115
- run :
116
116
command : make ci-push-images
117
117
no_output_timeout : 20m
118
+ - run :
119
+ command : make ci-backup-images
120
+ no_output_timeout : 20m
118
121
119
122
e2e-tests :
120
123
docker :
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ ci-build-images:
203
203
@./build/build-images.sh
204
204
205
205
ci-push-images :
206
- @./build/push-images.sh
206
+ @./build/push-images.sh quay.io
207
+
208
+ ci-backup-images :
209
+ @./build/push-images.sh docker.io
207
210
208
211
ci-build-cli :
209
212
@./build/cli.sh
Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ set -euo pipefail
19
19
20
20
CORTEX_VERSION=master
21
21
22
- image=$1
22
+ host=$1
23
+ image=$2
23
24
24
25
echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
25
26
26
27
if [ " $image " == " python-predictor-gpu" ]; then
27
28
cuda=(" 10.0" " 10.1" " 10.1" " 10.2" " 10.2" " 11.0" " 11.1" )
28
29
cudnn=(" 7" " 7" " 8" " 7" " 8" " 8" " 8" )
29
30
for i in ${! cudnn[@]} ; do
30
- docker push quay.io /cortexlabs/${image} :${CORTEX_VERSION} -cuda${cuda[$i]} -cudnn${cudnn[$i]}
31
+ docker push $host /cortexlabs/${image} :${CORTEX_VERSION} -cuda${cuda[$i]} -cudnn${cudnn[$i]}
31
32
done
32
33
else
33
- docker push quay.io /cortexlabs/${image} :${CORTEX_VERSION}
34
+ docker push $host /cortexlabs/${image} :${CORTEX_VERSION}
34
35
fi
Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"
22
22
source $ROOT /build/images.sh
23
23
source $ROOT /dev/util.sh
24
24
25
+ host=$1
26
+
25
27
# if parallel utility is installed, the docker push commands will be parallelized
26
28
if command -v parallel & > /dev/null && [ -n " ${NUM_BUILD_PROCS+set} " ] && [ " $NUM_BUILD_PROCS " != " 1" ]; then
27
- ROOT=$ROOT DOCKER_USERNAME=$DOCKER_USERNAME DOCKER_PASSWORD=$DOCKER_PASSWORD SHELL=$( type -p /bin/bash) parallel --will-cite --halt now,fail=1 --eta --jobs $NUM_BUILD_PROCS $ROOT /build/push-image.sh {} ::: " ${all_images[@]} "
29
+ ROOT=$ROOT DOCKER_USERNAME=$DOCKER_USERNAME DOCKER_PASSWORD=$DOCKER_PASSWORD SHELL=$( type -p /bin/bash) parallel --will-cite --halt now,fail=1 --eta --jobs $NUM_BUILD_PROCS $ROOT /build/push-image.sh $host {} ::: " ${all_images[@]} "
28
30
else
29
31
for image in " ${all_images[@]} " ; do
30
- $ROOT /build/push-image.sh $image
32
+ $ROOT /build/push-image.sh $host $ image
31
33
done
32
34
fi
You can’t perform that action at this time.
0 commit comments