Add labels to container images when build with build_images.sh #948
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
make test-all(UNIX) passes. CI will also test thisDescription of change
Adds the same labels to container images when building
build_images.shimages as CI builds images (#901).for comparison
$ skopeo inspect docker://ghcr.io/goss-org/goss:master { "Name": "ghcr.io/goss-org/goss", "Digest": "sha256:34d8b4e7701f6ce05d48295f41b551036a4ab41fcc90a95117bc2167af6a75e0", "RepoTags": [ "master" ], "Created": "2024-07-09T13:21:34.663165177Z", "DockerVersion": "", "Labels": { "org.opencontainers.image.created": "2024-07-09T13:20:52.013Z", "org.opencontainers.image.description": "Quick and Easy server testing/validation", "org.opencontainers.image.licenses": "Apache-2.0", "org.opencontainers.image.revision": "05f03a36ef6575b12e85670f3430a5e6e55dd547", "org.opencontainers.image.source": "https://github.com/goss-org/goss", "org.opencontainers.image.title": "goss", "org.opencontainers.image.url": "https://github.com/goss-org/goss", "org.opencontainers.image.version": "master" }, "Architecture": "amd64", "Os": "linux", "Layers": [ "sha256:b84a74cde5af5c5199bfc2ce2a8c8951a29a7716d17327e923f1a14c870a858b", "sha256:6c78e6c5d5083b0f92470315174d8036c0290cfb9bde21461ece9ead8fcd9705", "sha256:125d8e7bce64fb32407c2d3b4cdf168300ec048397dcdde32dddc821fef3a5a4" ], "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ] }