Add docker login to test step
This commit is contained in:
parent
15026c242f
commit
165a99ccc7
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,7 @@ test:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get install curl
|
- apt-get install curl
|
||||||
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
@ -105,6 +106,7 @@ test-deploy:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get install curl
|
- apt-get install curl
|
||||||
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE
|
- docker run -d -p 80:80 --name testing $CI_REGISTRY_IMAGE
|
||||||
- sleep 5
|
- sleep 5
|
||||||
|
|
Loading…
Add table
Reference in a new issue