From 1c53dd2eba64627eaaca4d6e64db40a18b2b0c47 Mon Sep 17 00:00:00 2001 From: Xbird Date: Wed, 13 Apr 2022 22:27:17 +0200 Subject: [PATCH] clean CI for docker HUB --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 57700af..7adc8ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,8 +72,9 @@ publish: - docker login $registry_host -u $registry_user -p $registry_pass - docker build -f ./Dockerfile -t $registry_host/$registry_img:$APP_VERSION . - docker push $registry_host/$registry_img:$APP_VERSION - - docker logout $registry_host - - docker images + - docker logout $registry_host - docker login -u $docker_user -p $docker_pass - docker tag $registry_host/$registry_img:$APP_VERSION $docker_host/$docker_img:$APP_VERSION - - docker push $docker_host/$docker_img:$APP_VERSION \ No newline at end of file + - docker tag $registry_host/$registry_img:$APP_VERSION $docker_host/$docker_img + - docker push $docker_host/$docker_img:$APP_VERSION + - docker push $docker_host/$docker_img \ No newline at end of file