Commit graph

11 commits

Author SHA1 Message Date
Thibault Saunier
7ede1f54aa Add a simple alpine based Dockerfile for images to build manifest 2018-11-13 16:51:36 +00:00
Thibault Saunier
529764a3d7 gitlab: ci: Run build_manifest tests only if the script changes 2018-11-13 16:51:36 +00:00
Jordan Petridis
2ec33592e9
CI: Use the correct bash syntax
345afee677 broke the bash
extreppsion that evaluates the strings, causing images to
never be pushed.
2018-11-12 18:01:00 +02:00
Jordan Petridis
8fbce56d69
CI: Change the push policy of the docker images
If we are in a fork of the project, we would like to be able
to overwrite the `:latest` tag if the registry from any branch
so we won't have to manually overwrite the image tag in the
build/test jobs in the .gitlab-ci.yml file
2018-11-12 15:54:23 +02:00
Jordan Petridis
345afee677
CI: Overwrite the build job from the template
Make it so when we build a new image in `gst-ci` it gets
picked up automatically by the job in this repo. For the template
itself we want the images to me be versioned and reproducible.
2018-11-12 15:54:23 +02:00
Nicolas Dufresne
64e3b154cd gitlab-ci: Only run scripts test on related code
Right now we only have one test against build_manifest.py, it
is not needed to run this test if that code haven't changed.
It's really easy to add more file or set a wild card in the
future.
2018-11-10 20:35:10 -05:00
Nicolas Dufresne
ba98b4138a gitlab-ci: Use quote for "test" stage
This is just for consistency, no really needed.
2018-11-10 20:34:21 -05:00
Thibault Saunier
8b34f1e9f6 Also run the main CI template in .gitlab-ci.yml
Rename some job otherwise some names where too similare.
2018-11-09 20:45:08 -03:00
Jordan Petridis
d9604ca8d2
Build the docker images and push them to the gitalb registry 2018-11-07 16:15:43 +02:00
Jordan Petridis
b5b71baddb
build_manifest.py: Prefer a custom token if set
In order to be able to query the Gitlab Group API we need to be
authenticated. CI_JOB_TOKEN for public jobs has a non-meaningfull
value which does not actually authenticate the Runner to the
intance.
2018-11-05 14:41:50 +02:00
Jordan Petridis
0fd632e833
CI: run the build_manifest.py tests 2018-11-05 14:31:52 +02:00