From 64fb0a541b3627c49999f2470ac755fbdcafc3d6 Mon Sep 17 00:00:00 2001 From: Oleh Avramenko Date: Fri, 22 Jul 2022 12:13:04 +0300 Subject: [PATCH] Add login to dockerhub Signed-off-by: Oleh Avramenko --- ci/gitlab/.gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/gitlab/.gitlab-ci.yml b/ci/gitlab/.gitlab-ci.yml index 5ea599f2b..6417ba3db 100644 --- a/ci/gitlab/.gitlab-ci.yml +++ b/ci/gitlab/.gitlab-ci.yml @@ -52,6 +52,7 @@ Docker Setup: services: - docker:18-dind before_script: + - docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD" - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" script: # main images @@ -362,6 +363,7 @@ app-docker-image: needs: [] allow_failure: true before_script: + - docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD" - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" script: - cp ./docker/Dockerfile.aktualizr ./ci/gitlab/Dockerfile