You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: doc/dev/how-to/wolfi/add_update_images.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,16 @@ These configuration files can be processed with apko, which will generate a base
16
16
17
17
Before each release, we should update the base images to ensure we include any updated packages and vulnerability fixes.
18
18
19
-
This is currently a two-step process, which will be further automated in the future:
20
-
21
-
- Run [`wolfi-images/rebuild-images.sh`](https://sourcegraph.com/github.com/sourcegraph/sourcegraph@588463afbb0904c125cdcf78c7b182f43328504e/-/blob/wolfi-images/rebuild-images.sh) script, commit the updated YAML files, and merge to main.
22
-
- Wait for the `main` branch's Buildkite run to complete.
23
-
- Buildkite will rebuild the base images and publish them to Dockerhub.
24
19
- Run `sg wolfi update-hashes` locally to update the base image hashes in `dev/oci_deps.bzl`. Commit these changes and merge to `main`.
25
-
- This fetches the updated base image hashes from the images that were pushed to Dockerhub in the previous step.
26
-
- Backport the PR that updated `dev/oci_deps.bzl` to the release branch.
20
+
- Backport the PR to the release branch.
21
+
22
+
#### Automation
23
+
24
+
This process is partially automated by Buildkite. A scheduled build runs daily to rebuild Wolfi base images - pulling in any updated dependencies - then push them to Docker Hub. When `sg wolfi update-hashes` is run, it pulls these latest image hashes from Docker Hub to update the references in `dev/oci_deps.bzl`.
25
+
26
+
To rebuild the images (perhaps to pick up a just-released package version), [find a scheduled build](https://buildkite.com/sourcegraph/sourcegraph/builds?branch=main) in Buildkite named "Nightly Rebuild of Wolfi Base Images", and hit "Rebuild".
27
+
28
+
It is also possible to manually rebuild individual images by running `wolfi-images/rebuild-images.sh` locally, then pushing and merging.
0 commit comments