Based on the auto-deploy-0.2.0 version of Kubernetes-with-canary.gitlab-ci.yml, this template:
- Comments out staging and canaries
- Makes automatic deployment to production the default
- Adds Code Climate (soon to be renamed)
- Adds tests
- Fixes a few other things
Scenarios to cover:
- Ruby/Rails, Node, Java
- no database, sqlite, postgres
- Dockerfile, no Dockerfile
- tests, no tests
- Private, public projects
- GitLab.com w/ shared runners, k8s cluster, GitLab.com w/ k8s runners
Test plan:
-
minimal-ruby-app
on gitlab.com-
topic branch -
merge to master
-
uncomment staging
,canary
, andproduction
'swhen: manual
-
manually deploy to canary -
manually deploy to production -
scale PRODUCTION_REPLICAS and CANARY_PRODUCTION_REPLICAS and redeploy
-
-
minimal-ruby-app
on k8s cluster-
topic branch -
merge to master
-
uncomment staging
,canary
, andproduction
'swhen: manual
-
manually deploy to canary -
manually deploy to production
-
-
rails
template on gitlab.com-
topic branch -
merge to master
-
uncomment staging
,canary
, andproduction
'swhen: manual
-
manually deploy to canary -
manually deploy to production
-
-
spring
template on gitlab.com-
topic branch -
merge to master
-
-
node
template on gitlab.com-
topic branch -
merge to master
-