Fix gitlab-ci.yml

This commit is contained in:
Deon George 2018-01-31 22:58:29 +11:00
parent 32c0d9efd5
commit 968663be79

View File

@ -30,7 +30,7 @@ test:
build:
stage: build
script:
- [ -f init ] && chmod 500 init
- if [ -f init ]; then chmod 500 init; fi
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}