Create post-install and pre-upgrade db hooks
These Helm hooks should allow someone using auto-deploy to
first initialize their database with e.g. bundle exec rake db:setup
and then migrate on each upgrade with e.g. bundle exec rake db:migrate
Note : no logs are accessible during execution of the hooks as Helm project has [yet to implement] (https://github.com/helm/helm/issues/2298). Discusion started in https://gitlab.com/gitlab-org/gitlab-ce/issues/48004#note_103967213 if we want to add a work-around in Auto-DevOps.gitlab-ci.yml
.
The job pods will stay around so that user can trace the pod logs for debugging purposes until another helm release is triggered.
By default, both commands have empty values.
This allows Auto-DevOps.gitlab-ci.yml changes to be implemented
Related issue
Edited by Thong Kuah