Skip to content
Snippets Groups Projects
Commit 83575b86 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

move docker login

parent 0821d93e
No related branches found
No related tags found
No related merge requests found
Pipeline #11500 failed with stages
in 18 seconds
...@@ -12,7 +12,6 @@ variables: ...@@ -12,7 +12,6 @@ variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- pip install setuptools - pip install setuptools
build_package: build_package:
...@@ -39,6 +38,7 @@ build_and_push_docker_image: ...@@ -39,6 +38,7 @@ build_and_push_docker_image:
stage: publish stage: publish
image: docker:26.0.1-dind image: docker:26.0.1-dind
script: script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA . - docker build -t $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA .
- docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA - docker push $DOCKER_IMAGE:$CI_COMMIT_SHORT_SHA
only: only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment