Clean .gitlab-ci.yml
Summary
Currently .gitlab-ci.yml is a mess. It's low-quality due to heavy dependence of the YAML syntax, lots of duplicates, Edge cases that aren't covered, etc.
Proposal
- DO NOT put scripts in the YAML file, pluck them away from it into neatly categorized shell scripts
- Run tests in the Docker image, Most of the edge cases and "Master" crashing are a result of the testing environment not following the actual docker image that's being shipped to production
- Resolve duplicates, A lot of the scripts are duplicates (see the deployment tasks) it would be really helpful to have them into it's own shell scripts and simply change the arguments when calling it (
deploy.sh stuff
)
Relevant links
Edited by Yuki