login moved

This commit is contained in:
Blair Vanderlugt 2021-08-19 10:59:48 -04:00
parent 6e7b3c92a1
commit 5cd3924b92

View File

@ -10,9 +10,6 @@ include:
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/docker-with-compose:latest 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: stages:
- build - build
@ -26,6 +23,8 @@ variables:
# todo you can probably just build the single image w/o docker-compose # todo you can probably just build the single image w/o docker-compose
build-merge-request: build-merge-request:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
stage: build stage: build
tags: tags:
- integration - integration
@ -38,6 +37,8 @@ build-merge-request:
when: always when: always
build-staging: build-staging:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
tags: tags:
- integration - integration
#- blocal #- blocal
@ -50,6 +51,9 @@ build-staging:
- staging - staging
deploy-staging: deploy-staging:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- pip install docker-auto-labels
tags: tags:
- integration - integration
stage: deploy stage: deploy