Scheduled daily builds to update OS dependencies
Problem
All analyzers are required to move to a daily build/publish of the latest production image. The goal is to get OS base image updates daily to improve the security posture of our analyzer images. The daily build/publish configured with a scheduled pipeline, allowing schedule to be adjusted.
- OKR: https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/5901
- Policy: Define a policy for Secure analyzer images upda... (#429152 - closed) • Olivier Gonzalez • 17.0
The following will change nightly:
- New image created with latest OS base image packages
- Publish new image to registry
- Update tags for current public version, pointing to latest image
The following will NOT change:
- Changelog will not change
- Version numbers will not change
- Unpublished commits will not be published
- Repository tags will not change
Implementation plan
- New variable to trigger OS update build
scheduled_os_dep_build - Build latest
pub-vprefixed tag (e.g.pub-v3.7.0,pub-v3.7.0-fips) - Find all default-branch conditionals and update if needed for tags
-
build_base*- Update rules to run for both
scheduled_os_dep_buildanddaily_security_scan
- Update rules to run for both
-
build- If
scheduled_os_dep_build, use lastpub-vversiongit switch TAG-
buildtag.shuse latest pub tag instead of incrementing
- If
- Create nightly schedule
- Identify flaky tests and fix them
Edited by Michael Eddington