ci: add image for building the app

This commit is contained in:
Jovan Krunić
2018-12-11 21:47:36 +01:00
commit b4268b236f
3 changed files with 439 additions and 0 deletions

20
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,20 @@
image: registry.gitlab.com/openstapps/projectmanagement/builder
stages:
- setup
setup:
stage: setup
only:
- schedules
variables:
DOCKER_DRIVER: overlay2
image: registry.gitlab.com/openstapps/projectmanagement/builder
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/openstapps/app .
- docker push registry.gitlab.com/openstapps/app
tags:
- docker