File tree 4 files changed +14
-19
lines changed
4 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ jobs:
117
117
- image : cimg/python:3.6
118
118
environment :
119
119
DOCKER_CLI_EXPERIMENTAL : enabled
120
- DOCKER_CONTEXT : default
121
120
steps :
122
121
- setup_remote_docker
123
122
- checkout
@@ -131,16 +130,13 @@ jobs:
131
130
- run : make ci-build-cli
132
131
- return-if-not-deployed-branch
133
132
- run : make ci-build-and-upload-cli
134
- - run :
135
- command : make ci-build-images
136
- no_output_timeout : 40m
137
133
- quay-login
138
134
- run :
139
- command : make ci-push-images
140
- no_output_timeout : 20m
141
- - run :
142
- command : make ci-backup -images
143
- no_output_timeout : 20m
135
+ name : Build and Push CI Images
136
+ command : |
137
+ make ci-build-images
138
+ make ci-push -images
139
+ no_output_timeout : 40m
144
140
145
141
e2e-tests :
146
142
docker :
Original file line number Diff line number Diff line change @@ -204,10 +204,7 @@ ci-build-images:
204
204
@./build/build-images.sh
205
205
206
206
ci-push-images :
207
- @./build/push-images.sh quay.io
208
-
209
- ci-backup-images :
210
- @./build/push-images.sh docker.io
207
+ @./build/push-images.sh quay.io docker.io
211
208
212
209
ci-build-cli :
213
210
@./build/cli.sh
Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. >/dev/null && pwd)"
21
21
22
22
CORTEX_VERSION=0.37.0
23
23
24
- host=$1
25
- image=$2
26
- platforms=$3
24
+ host_primary=$1
25
+ host_backup=$2
26
+ image=$3
27
+ platforms=$4
27
28
28
29
echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
29
- docker buildx build $ROOT --progress plain -f $ROOT /images/$image /Dockerfile -t $host /cortexlabs/${image} :${CORTEX_VERSION} --platform $platforms --push
30
+ docker buildx build $ROOT --progress plain -f $ROOT /images/$image /Dockerfile -t $host_primary /cortexlabs/ ${image} : ${CORTEX_VERSION} -t $host_backup /cortexlabs/${image} :${CORTEX_VERSION} --platform $platforms --push
Original file line number Diff line number Diff line change @@ -22,12 +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
25
+ host_primary=$1
26
+ host_backup=$2
26
27
27
28
for image in " ${all_images[@]} " ; do
28
29
platforms=" linux/amd64"
29
30
if in_array $image " multi_arch_images" ; then
30
31
platforms+=" ,linux/arm64"
31
32
fi
32
- $ROOT /build/push-image.sh $host $image $platforms
33
+ $ROOT /build/push-image.sh $host_primary $host_backup $image $platforms
33
34
done
You can’t perform that action at this time.
0 commit comments