Remove unnecessary files from deployed Docker image
deploy jobs have no dedicated
dependencies, which leads to artifacts from the previous stage being downloaded by these jobs. This increases the image's size and clutters it.
Declare 'empty' dependencies according to the GitLab docs:
Defining an empty array will skip downloading any artifacts for that job.
How to test the implementation?
- Pipeline passes
- No artifacts are downloaded for
- #44 seeks for reducing the image size