Run docker tag latest on the node from which we will run arv-keepdocker
authorWard Vandewege <ward@jhvc.com>
Wed, 5 Feb 2020 21:24:02 +0000 (16:24 -0500)
committerWard Vandewege <ward@jhvc.com>
Wed, 5 Feb 2020 21:24:02 +0000 (16:24 -0500)
tag latest.

No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@jhvc.com>

jenkins/run-deploy.sh

index 6fbade114781ad4316c313c19de2611fa16a5ba7..b603cdd206341d9ad7e90e4d87b148c08010c882 100755 (executable)
@@ -395,6 +395,7 @@ if [[ "$NODE" == "" ]]; then
       title "Found latest arvados/jobs Docker image, nothing to upload"
       # Just in case it isn't yet, tag the image as latest
       title "Tag arvados/jobs Docker image $VERSION as latest"
+      ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 125" $SHELL_NODE_FOR_ARV_KEEPDOCKER docker tag arvados/jobs:$VERSION arvados/jobs:latest
       ssh -t -p$SSH_PORT -o "StrictHostKeyChecking no" -o "ConnectTimeout 125" $SHELL_NODE_FOR_ARV_KEEPDOCKER "ARVADOS_API_HOST=$ARVADOS_API_HOST ARVADOS_API_TOKEN=$ARVADOS_API_TOKEN arv-keepdocker --project-uuid=$DOCKER_IMAGES_PROJECT arvados/jobs latest"
       if [[ $? -ne 0 ]]; then
         title "'arv-keepdocker' failed..."