Updated .gitlab-ci.yml
This commit is contained in:
parent
2446b45d95
commit
92f768e22a
@ -12,6 +12,8 @@ variables:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- env|sort
|
- env|sort
|
||||||
|
- test -n "${REGISTRY}" # Needs to be set in project
|
||||||
|
- test -n "${IMAGE}" # Needs to be set in project
|
||||||
- docker info
|
- docker info
|
||||||
- docker version
|
- docker version
|
||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${REGISTRY}
|
||||||
@ -20,6 +22,7 @@ test:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- docker build -t ${IMAGE}:${VERSION} .
|
- docker build -t ${IMAGE}:${VERSION} .
|
||||||
|
- docker images
|
||||||
only:
|
only:
|
||||||
- debug
|
- debug
|
||||||
|
|
||||||
@ -32,4 +35,4 @@ build:
|
|||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
only:
|
only:
|
||||||
- c6
|
- master
|
||||||
|
Reference in New Issue
Block a user