Fixed dockerhub registry url for tag and push of image

parent ad420c63
Pipeline #63092803 failed with stages
in 2 minutes and 44 seconds
......@@ -94,16 +94,18 @@ services:
"${CI_REGISTRY_IMAGE}/$BRANCH"`
fi
DOCKER_HUB_IMAGE="index.docker.io/$DOCKER_HUB_REGISTRY_USER"
docker image tag \
"${CI_REGISTRY_IMAGE}/$BRANCH" \
"${CI_REGISTRY_IMAGE}/${BRANCH}:$IMAGE_VERSION"
docker image tag \
"${CI_REGISTRY_IMAGE}/$BRANCH" \
"${DOCKER_HUB_REGISTRY}/${DOCKER_HUB_REGISTRY_USER}/${BRANCH}:$IMAGE_VERSION"
"${DOCKER_HUB_IMAGE}/${BRANCH}:$IMAGE_VERSION"
docker image push "${CI_REGISTRY_IMAGE}/${BRANCH}:$IMAGE_VERSION"
docker image push "${DOCKER_HUB_REGISTRY}/${DOCKER_HUB_REGISTRY_USER}/${BRANCH}:$IMAGE_VERSION"
docker image push "${DOCKER_HUB_IMAGE}/${BRANCH}:$IMAGE_VERSION"
}
before_script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment