From df12b60d30b2fdb264c4b47d2048a228890ac71e Mon Sep 17 00:00:00 2001 From: Xbird Date: Wed, 13 Apr 2022 19:38:44 +0200 Subject: [PATCH] add Docker hub publication to CI --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfe4003..dc3e809 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,4 +71,7 @@ publish: - APP_VERSION=$(cat package.json | jq .version -r) - 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 \ No newline at end of file + - docker push $registry_host/$registry_img:$APP_VERSION + - docker logout $registry_host + - docker login $docker_host -u $docker_user -p $docker_pass + - docker push $docker_host/$docker_img:$APP_VERSION \ No newline at end of file