From 5cd3924b9284296cd05e697854dd8326b7a6cfb7 Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Thu, 19 Aug 2021 10:59:48 -0400 Subject: [PATCH] login moved --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89f73311..9fbbc3a8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,9 +10,6 @@ include: image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/docker-with-compose:latest -before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - - pip install docker-auto-labels stages: - build @@ -26,6 +23,8 @@ variables: # todo you can probably just build the single image w/o docker-compose build-merge-request: + before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY stage: build tags: - integration @@ -38,6 +37,8 @@ build-merge-request: when: always build-staging: + before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY tags: - integration #- blocal @@ -50,6 +51,9 @@ build-staging: - staging deploy-staging: + before_script: + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - pip install docker-auto-labels tags: - integration stage: deploy