Skip to content
Snippets Groups Projects
Commit 1acf43dd authored by Baruta Daniel Mihail's avatar Baruta Daniel Mihail
Browse files

Login only for build

parent 42818798
No related branches found
No related tags found
No related merge requests found
......@@ -9,11 +9,10 @@ stages:
variables:
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
stage: build
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull -t $CONTAINER_RELEASE_IMAGE .
- docker push $CONTAINER_RELEASE_IMAGE
......
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