Skip to content
Verified Commit a08a1882 authored by Bob Van Landuyt's avatar Bob Van Landuyt
Browse files

feat: add a migration script to update common-ci-tasks

This updates common-ci-tasks, before migrating to components. We need
this because we broke updates to `common-ci-tasks` in the past,
leaving some projects behind. We fixed this in v2.52.2

This manually updates them, as updating common-template-copier does
seem to work. For example in
https://gitlab.com/gitlab-com/gl-infra/capacity-planning-trackers/gitlab-com/-/merge_requests/376/diffs

Tried this script locally:

```
(main ✓) gitlab-dedicated-staging /Users/bvl/repos/gitlab.com/gitlab-com/gl-infra/common-template-copier/migration-scripts/update-broken-common-ci-tasks-version.py
(main U:1 ✗) gitlab-dedicated-staging git diff
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b520f4c..dff4a99 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,7 +15,7 @@ include:
   # common to all projects using this template library.
   # see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/README.md#templatesstandardyml
   - project: 'gitlab-com/gl-infra/common-ci-tasks'
-    ref: v2.33  # renovate:managed
+    ref: v2.78  # renovate:managed
     file: templates/standard.yml

 workflow:
```

But it does not do anything for projects that are already on the
renovate train, and have a version newer than 2.52.2.

For
#7
parent 9fe183ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment