Skip to content
This repository was archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
Merge pull request #63 from turniere/upgrade-to-krane
Browse files Browse the repository at this point in the history
Use krane instead of kubernetes-deploy
  • Loading branch information
Thor77 authored Jul 2, 2020
2 parents 5926226 + 3537244 commit b843179
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ kubernetes:
- turniere-deploy
stage: deploy
only:
- master
refs:
- master
variables:
- $FORCE_DEPLOY
image: ruby
variables:
KUBERNETES_SERVICE_ACCOUNT_OVERWRITE: gitlab-deploy
Expand All @@ -29,15 +32,18 @@ kubernetes:
- kubectl config set-cluster k8s --server="https://kubernetes.default.svc" --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
- kubectl config set-credentials sa --token="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
- kubectl config set-context local --cluster=k8s --user=sa --namespace=turniere-frontend
- gem install kubernetes-deploy --version '=0.29.0'
- REVISION=$CI_COMMIT_SHA kubernetes-deploy --template-dir kubernetes turniere-frontend local
- gem install krane
- krane render -f kubernetes --current-sha "$CI_COMMIT_SHA" | krane deploy turniere-frontend local -f -

deploy_watchtower:
tags:
- docker
stage: deploy
only:
- master
refs:
- master
variables:
- $FORCE_DEPLOY
image: docker
services:
- docker:dind
Expand Down

0 comments on commit b843179

Please sign in to comment.