CI: Overwrite the build job from the template
authorJordan Petridis <jordan@centricular.com>
Mon, 12 Nov 2018 12:37:16 +0000 (14:37 +0200)
committerJordan Petridis <jordan@centricular.com>
Mon, 12 Nov 2018 13:54:23 +0000 (15:54 +0200)
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.

.gitlab-ci.yml

index a3a657f..a3ab781 100644 (file)
@@ -73,3 +73,10 @@ fedora amd64 build docker:
   extends: .base
 
 include: "gitlab/ci_template.yml"
+
+# Overwrite the job with the same name that comes from the include template,
+# in order to use the `:latest` tag of the image built
+build fedora x86_64:
+  # This comes from the `include:` above
+  extends: .build
+  image: "${CI_REGISTRY_IMAGE}/amd64/fedora-build:latest"
\ No newline at end of file