Skip to content

Auto-DevOps.gitlab-ci.yml

Mark Pundsack requested to merge auto-devops into master

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, and production's when: 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, and production's when: manual
    • manually deploy to canary
    • manually deploy to production
  • rails template on gitlab.com

    • topic branch
    • merge to master
    • uncomment staging, canary, and production's when: manual
    • manually deploy to canary
    • manually deploy to production
  • spring template on gitlab.com

    • topic branch
    • merge to master
  • node template on gitlab.com

  • Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/36870

  • Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/34040

Edited by Alessio Caiazza

Merge request reports