Add docker login to test step

This commit is contained in:
saibotk 2020-01-08 11:53:17 +01:00
parent 15026c242f
commit 165a99ccc7
No known key found for this signature in database
GPG key ID: A3299C587D5DF523

View file

@ -83,6 +83,7 @@ test:
LANG: C.UTF-8
before_script:
- apt-get install curl
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
- sleep 5
@ -105,6 +106,7 @@ test-deploy:
LANG: C.UTF-8
before_script:
- apt-get install curl
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE
- sleep 5