Auto-DevOps.gitlab-ci.yml
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-appon 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-appon k8s cluster-
topic branch -
merge to master -
uncomment staging,canary, andproduction'swhen: manual -
manually deploy to canary -
manually deploy to production
-
-
railstemplate on gitlab.com-
topic branch -
merge to master -
uncomment staging,canary, andproduction'swhen: manual -
manually deploy to canary -
manually deploy to production
-
-
springtemplate on gitlab.com-
topic branch -
merge to master
-
-
nodetemplate on gitlab.com-
topic branch -
merge to master
-
Edited by Alessio Caiazza