diff --git a/ci-scripts/docker-release.sh b/ci-scripts/docker-release.sh index 71499309..174d600c 100644 --- a/ci-scripts/docker-release.sh +++ b/ci-scripts/docker-release.sh @@ -22,9 +22,8 @@ check_dockerhub_credentials() { dockerhub_push() { echo ${DOCKERHUB_PASSWORD} | docker login --username "$DOCKERHUB_USERNAME" --password-stdin IMAGE="$DOCKERHUB_REPOSITORY/$SERVICE_NAME" - docker build -t ${IMAGE}:${VERSION} -f $DOCKERFILE_PATH . - docker tag ${IMAGE}:${VERSION} ${IMAGE}:${VERSION} - docker push ${IMAGE}:${VERSION} + docker build -t ${IMAGE}:${VERSION} -t ${IMAGE}:latest -f $DOCKERFILE_PATH . + docker push -a ${IMAGE} } check_arguments