Merge pull request #24 from turniere/ticket/TURNIERE-167

Automatically build Docker Containers - TURNIERE-167
This commit is contained in:
betanummeric 2019-05-08 16:04:31 +02:00 committed by GitHub
commit 4627a30ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -4,3 +4,4 @@ node_modules/**
README.md
.hound.yml
.gitignore
.gitlab-ci.yml

11
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,11 @@
stages:
- build
kaniko:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG