Trying out final solution to CI pipeline for dockerhub image

parent b04a2f46
Pipeline #63093443 failed with stages
in 2 minutes and 40 seconds
......@@ -94,17 +94,19 @@ 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 push "${CI_REGISTRY_IMAGE}/${BRANCH}:$IMAGE_VERSION"
DOCKER_HUB_IMAGE="index.docker.io/$DOCKER_HUB_REGISTRY_USER"
CI_REGISTRY="docker.io"
docker image tag \
"${CI_REGISTRY_IMAGE}/$BRANCH" \
"${DOCKER_HUB_IMAGE}/${BRANCH}:$IMAGE_VERSION"
docker image push "${CI_REGISTRY_IMAGE}/${BRANCH}:$IMAGE_VERSION"
docker image push "${DOCKER_HUB_IMAGE}/${BRANCH}:$IMAGE_VERSION"
}
......
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