From f2f8266eb8f67f404860033ef019ddf9e5024366 Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Fri, 12 May 2023 11:40:01 -0700 Subject: [PATCH 1/2] Add `org.opencontainers.image.source.subpath` --- annotations.md | 1 + 1 file changed, 1 insertion(+) diff --git a/annotations.md b/annotations.md index 49f5f82e9..8b4fc627d 100644 --- a/annotations.md +++ b/annotations.md @@ -23,6 +23,7 @@ This specification defines the following annotation keys, intended for but not l * **org.opencontainers.image.url** URL to find more information on the image (string) * **org.opencontainers.image.documentation** URL to get documentation on the image (string) * **org.opencontainers.image.source** URL to get source code for building the image (string) +* **org.opencontainers.image.source.subpath** A tool-specific path within the `source` repository which be used to distinguish different build targets in the same source repository * **org.opencontainers.image.version** version of the packaged software * The version MAY match a label or tag in the source code repository * version MAY be [Semantic versioning-compatible](https://semver.org/) From c3e7b2158cf26d1ed4263025e5904fdd9e4ba860 Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Fri, 23 Jun 2023 09:37:41 -0700 Subject: [PATCH 2/2] Revise text to simply point to a relative path. Co-authored-by: Brandon Mitchell Signed-off-by: Evan Anderson --- annotations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annotations.md b/annotations.md index 8b4fc627d..cf26c4ba8 100644 --- a/annotations.md +++ b/annotations.md @@ -23,7 +23,7 @@ This specification defines the following annotation keys, intended for but not l * **org.opencontainers.image.url** URL to find more information on the image (string) * **org.opencontainers.image.documentation** URL to get documentation on the image (string) * **org.opencontainers.image.source** URL to get source code for building the image (string) -* **org.opencontainers.image.source.subpath** A tool-specific path within the `source` repository which be used to distinguish different build targets in the same source repository +* **org.opencontainers.image.source.subpath** A relative path within the `source` repository. The path separator MUST be `/`. The path MUST NOT contain “..” (upper dir) component. * **org.opencontainers.image.version** version of the packaged software * The version MAY match a label or tag in the source code repository * version MAY be [Semantic versioning-compatible](https://semver.org/)