Skip to content
Snippets Groups Projects
Commit b2526bf9 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Merge branch 'feature/OCI-labels' into 'master'

Add OCI standard annotation labels to every build

See merge request !6
parents 297719e8 195388ec
No related branches found
No related tags found
1 merge request!6Add OCI standard annotation labels to every build
Pipeline #5307 canceled
......@@ -24,7 +24,14 @@ container-build:
- export VCS_URL=$CI_PROJECT_URL
script:
- si-fix "${CI_REGISTRY_BUILD_DOCKERFILE:-./Dockerfile}"
- podman build --pull $CI_REGISTRY_BUILD_ARGS -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" .
- podman build --pull
--label "org.opencontainers.image.source=$CI_PROJECT_URL"
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA"
--label "org.opencontainers.image.created=$(date --rfc-3339 ns)"
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE"
$CI_REGISTRY_BUILD_ARGS
-t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
.
- podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
container-tagging:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment