diff options
author | Thomas Haller <thaller@redhat.com> | 2020-11-17 09:21:12 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-11-17 09:40:35 +0100 |
commit | 539c00a8a158691347514e10947adee622bc4042 (patch) | |
tree | f402269f6e8c6473bcb89a210ac21d710f53e287 /.gitlab-ci/config.yml | |
parent | 71c3291296ed9441899aac32d4e959a078484904 (diff) | |
download | NetworkManager-539c00a8a158691347514e10947adee622bc4042.tar.gz |
gitlab-ci: automatically hash build scripts into tag for ci-templates container
ci-templates builds and caches the test containers. When the build
scripts, the ci-template or "config.yml" changes, we need to bump
the tag so that the containers get rebuild.
Partly automate this. The tag now gets generated by the template and
contains a checksum of certain build files. Thus, if you change
any build files, then `ci-fairy generate-template` would generate a
different tag. You can not miss that, because we have tests that ensure
that our ".gitlab-ci.yml" is up to date. Also, you no longer need to
manually bump the tag when a build script changes, just regenerate
".gitlab-ci.yml" with `ci-fairy generate-template`.
See also: https://gitlab.freedesktop.org/freedesktop/ci-templates/-/merge_requests/54
Diffstat (limited to '.gitlab-ci/config.yml')
-rw-r--r-- | .gitlab-ci/config.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.gitlab-ci/config.yml b/.gitlab-ci/config.yml index 1d78da8fb6..6e6b8bc5e2 100644 --- a/.gitlab-ci/config.yml +++ b/.gitlab-ci/config.yml @@ -8,7 +8,7 @@ # # We're happy to rebuild all containers when one changes. -.default_tag: &default_tag '2020-11-10.0' +.default_tag: &default_tag '2020-11-17.0' # The list of all distributions we want to create job for. @@ -16,6 +16,7 @@ distributions: - name: fedora tag: *default_tag + base_type: fedora versions: - '28' - '29' @@ -28,6 +29,7 @@ distributions: - '33' - name: ubuntu tag: *default_tag + base_type: debian versions: - '16.04' - '18.04' @@ -36,6 +38,7 @@ distributions: - 'rolling' - name: debian tag: *default_tag + base_type: debian versions: - '9' - '10' @@ -43,6 +46,7 @@ distributions: - 'sid' - name: centos tag: *default_tag + base_type: fedora versions: - '7.5.1804' - '7.6.1810' |