Merge pull request #58 from turniere/ticket/TUR-18

Push Container with :deploy on commits to master
This commit is contained in:
Daniel Schädler 2019-11-21 17:51:50 +01:00 committed by GitHub
commit e5ba8b5ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -31,3 +31,17 @@ kubernetes:
- kubectl config set-context local --cluster=k8s --user=sa --namespace=turniere-frontend - kubectl config set-context local --cluster=k8s --user=sa --namespace=turniere-frontend
- gem install kubernetes-deploy --version '=0.29.0' - gem install kubernetes-deploy --version '=0.29.0'
- REVISION=$CI_COMMIT_SHA kubernetes-deploy --template-dir kubernetes turniere-frontend local - REVISION=$CI_COMMIT_SHA kubernetes-deploy --template-dir kubernetes turniere-frontend local
deploy_watchtower:
tags:
- docker
stage: deploy
only:
- master
image: docker
services:
- docker:dind
script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE/production:deploy
- docker push $CI_REGISTRY_IMAGE/production:deploy