Apply the `latest` tag in a more consistent way
- Jan 15, 2021
-
-
Emanuele Aina authored
By applying `latest` tags as soon as the relevant image has been built we end up with a quite large time window where they are all quite out of sync: in particular, the tag is applied to the `base` image as soon as it is ready, before all the depending images get built. On top of that, if depending images fail, the `latest` tags will stay out of sync. This can be quite confusing for users, so let's apply the `latest` tag only after all the previous stages have completed. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
-
Emanuele Aina authored
We want to ensure that the jobs updating the `latest` tags always reflect the actual latest pipeline. When two pipelines are started at the same time on the same branch sometimes the earlier one can complete last due to scheduling or any other reason, thus breaking the previous assumption. To avoid that, make the whole pipeline interruptible up to the tagging jobs so that earlier pipelines get killed when a new one is started. Signed-off-by:
Emanuele Aina <emanuele.aina@collabora.com>
aa6fd73d
-