gitlab CI configuration

This commit is contained in:
2019-03-18 16:35:35 +01:00
parent ccfa59e97c
commit 37b52a242b

17
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,17 @@
build:
stage: build
script:
- docker build -t short-build .
test:
stage: test
script:
- docker run short-build -v
- docker tag short-build tandrade/short:latest
deploy:
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
stage: deploy
script:
- docker push tandrade/short:latest
only:
- master