Skip to content

Commit

Permalink
Merge branch 'master' of gitlab.com:bts-ce/bts-ce-database
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Oct 23, 2018
2 parents cd80016 + e1e60d3 commit e2b4310
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: docker:latest

services:
- docker:dind

before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY

build-master:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master

build:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master

0 comments on commit e2b4310

Please sign in to comment.