Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions llvm/docs/CIBestPractices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,20 @@ branches as follows:
branches:
- main
- releases/*

Container Best Practices
========================

This section contains best practices/guidelines when working with containers
for LLVM infrastructure.

Using Fully Qualified Container Names
-------------------------------------

When referencing container images from a registry, such as in Github Actions
workflows, or in ``Dockerfile`` files used for building images, prefer fully
qualified names (i.e., including the registry domain) over just the image.
For example, prefer ``docker.io/ubuntu:24.04`` over ``ubuntu:24.04``. This
ensures portability across systems where a different default registry might
be specified and also prevents attackers from changing the default registry
to pull in a malicious image instead of the intended one.
Loading