Add .gitlab-ci.yml

This commit is contained in:
Andrej Ramašeuski 2019-11-13 21:03:09 +01:00
parent 9c46085591
commit 8edf27b521
1 changed files with 17 additions and 0 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
image: docker:19.03.1
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
services:
- docker:19.03.1-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build:
stage: build
script:
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG