Fix getting latest opam version

6 jobs for master in 23 seconds (queued for 6 seconds)
latest
Status Job ID Name Coverage
  .Pre
passed #87017
make-targets

00:00:11

 
  Build
passed build-images

 
  Publish
failed #87469
publish-docker

00:00:11

failed #87429
publish-docker

00:00:08

failed #87035
publish-docker

00:00:09

failed #87019
publish-docker

00:00:25

 
Name Stage Failure
failed
publish-docker Publish
Downloading artifacts from coordinator... ok        id=87017 responseStatus=200 OK token=XkJbjTcV
Executing "step_script" stage of the job script
$ mkdir -p /root/.docker
$ echo "{ # collapsed multi-line command
$ for OCAML_VERSION in $(cat ocaml-versions); do TAG=${OCAML_VERSION%.*}-$(date +%F); crane copy $CI_REGISTRY_IMAGE:$TAG $DOCKERHUB_IMAGE:$TAG; crane tag $DOCKERHUB_IMAGE:$TAG ${OCAML_VERSION}; crane tag $DOCKERHUB_IMAGE:$TAG ${OCAML_VERSION%.*}; if [ "$OCAML_VERSION" = $(tail -n1 ocaml-versions) ]; then crane tag $DOCKERHUB_IMAGE:$TAG latest; fi; done
2021/11/26 17:42:39 Copying from registry.ocamlpro.com/ocamlpro/ocaml-docker-images:4.02-2021-11-26 to ocamlpro/ocaml:4.02-2021-11-26
Error: fetching "registry.ocamlpro.com/ocamlpro/ocaml-docker-images:4.02-2021-11-26": GET https://registry.ocamlpro.com/v2/ocamlpro/ocaml-docker-images/manifests/4.02-2021-11-26: MANIFEST_UNKNOWN: manifest unknown; map[Tag:4.02-2021-11-26]
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1