Skip to content

Resolve "Use CI to deploy to cluster"

Jason Plum requested to merge 5-add-ci-deployment into master

Add CI/CD: round 1

Modify the default AutoDevOps template .gitlab-ci.yml to the needs of this project.

  • Added DNS lookup of fetch-ip.$CI_ENVIRONMENT_REF_SLUG.$AUTO_DEVOPS_DOMAIN to get/find the loadBalancerIP for the NGINX chart.
  • Altered the deployment to use . path, commented out download_chart calls. This project is self-contained ... at the moment.
  • Set POSTGRES_ENABLED to default false vs true
  • Set all needed chart options via the helm call in function deploy() of .auto_devops
  • Deploys into gitlab-$CI_ENVIRONMENT_REF_SLUG.$AUTO_DEVOPS_DOMAIN

Currently:

  • production will end up with gitlab.$AUTO_DEVOPS_DOMAIN
  • staging is capable, but not activated. gitlab-staging.$AUTO_DEVOPS_DOMAIN
  • Review apps are functional at gitlab-$CI_ENVIRONMENT_REF_SLUG.$AUTO_DEVOPS_DOMAIN
  • There are no tests against the deployed charts

Closes #5 (closed)

Edited by Jason Plum

Merge request reports

Loading