Try to build the image once and push to both the GitLab and DockerHub registries.

1 job for master in 1 minute and 42 seconds (queued for 1 second)
Name Stage Failure
failed
build_TreeMaker_cmssw_standalone_CMSSW_10_6_25 Build
-rwxrwxrwx    1 0        0            229 May 20 18:50 entrypoint.sh
-rw-rw-rw- 1 0 0 1.8K May 20 18:50 site-local-config.xml
$ echo "Logging into the registry ${CI_REGISTRY}"
Logging into the registry gitlab-registry.cern.ch
$ export DOCKER_AUTH="$(echo -n $DOCKER_USERNAME:$DOCKER_PASSWORD | base64)"
$ echo "{\"auths\":{\"${CI_REGISTRY}\":{\"username\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}, \"${DOCKER_REGISTRY\":{\"auth\":\"${DOCKER_AUTH}\"}}}" > /kaniko/.docker/config.json
/busybox/sh: eval: line 133: syntax error: unterminated quoted string
Cleaning up file based variables
ERROR: Job failed: exit code 2