File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -263,19 +263,24 @@ jobs:
263
263
- name : List Docker images
264
264
run : |
265
265
if [ -n "$DOCKER_PUSH_REPOSITORY" -a -f .tox/$TOX_ENV/Dockertags ]; then
266
- echo "::notice title=Docker images pushed::$(echo $(cat .tox/$TOX_ENV/Dockertags))"
266
+ set -- $(cat .tox/$TOX_ENV/Dockertags)
267
+ case $# in
268
+ 1) images="image"; one_image="the image";;
269
+ *) images="images"; one_image="one of the images";;
270
+ esac
271
+ echo "::notice title=Docker $images pushed::Pushed $images $(echo $(cat .tox/$TOX_ENV/Dockertags))"
267
272
echo
268
- echo "To pull an image and enter the container, type:"
273
+ echo "To pull $one_image and enter the container, type:"
269
274
echo
270
- for TAG in $(cat .tox/$TOX_ENV/Dockertags) ; do
275
+ for TAG in $* ; do
271
276
echo " \$ docker run -it $TAG bash"
272
277
done
273
278
echo
274
- echo "To use an image as the base for an incremental build, type:"
279
+ echo "To use $one_image as the base for an incremental build, type:"
275
280
echo
276
281
TOX_ENV_SANS_INCREMENTAL=${TOX_ENV/-incremental/}
277
282
DOCKER_IMAGE=${TOX_ENV_SANS_INCREMENTAL#docker-}
278
- for TAG in $(cat .tox/$TOX_ENV/Dockertags) ; do
283
+ for TAG in $* ; do
279
284
echo -n " \$"
280
285
if [ "$DOCKER_PUSH_REPOSITORY" != "ghcr.io/sagemath/sage/" ]; then
281
286
echo -n " FROM_DOCKER_REPOSITORY=$DOCKER_PUSH_REPOSITORY"
You can’t perform that action at this time.
0 commit comments