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
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,8 @@ The base image is built first, and then language images, and finally project ima
130
130
Docker images are scanned for vulnerabilities using trivy as part of a build step, and the build fails if vulnerabilities are found not in .trivyignore file.
131
131
132
132
For pull requests, images are tagged with the pr-{pull request id}-{short commit sha}.
133
-
For merges to main, images are tagged with the {short commit sha}.
134
-
Github actions images are tagged with githubactions-{tag}
133
+
For merges to main, images are tagged with the ci-{short commit sha}.
134
+
Github actions images are tagged with githubactions-{full tag}
135
135
Amd64 images are tagged with {tag}-amd64
136
136
Arm64 images are tagged with {tag}-arm64
137
137
Combined image manifest image is just tagged with {tag} so can be included in devcontainer.json and the correct image is pulled based on the host architecture.
There is a script to delete unused container images. This runs on every merge to main, and deletes pull request images, and on a weekly schedule which deletes images created by ci.
280
+
You can run it manually using the following. Using the `dry-run` flag just shows what would be deleted
-`--dry-run` (`-n`) shows what would be deleted without deleting anything.
291
+
-`--delete-pr` deletes images tagged with `pr-...` or `githubactions-pr-...` only when the PR is closed.
292
+
-`--delete-ci` deletes images tagged with `ci-<8 hex sha>...` or `githubactions-ci-<8 hex sha>...`.
293
+
294
+
If neither `--delete-pr` nor `--delete-ci` is set, the script defaults to `--delete-pr`.
295
+
277
296
## Common makefile targets
278
297
There are a set of common Makefiles that are defined in `src/base/.devcontainer/Mk` and are included from `common.mk`. These are installed to /usr/local/share/eps/Mk on the base image so are available for all containers.
0 commit comments