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

Split script line to improve readability

This patch just adjusts the arrangement of the lines to allow easier
readability. The line is collabsed on execution.

Reference:
https://docs.gitlab.com/ee/ci/yaml/script.html
parent 2772984f
No related branches found
No related tags found
1 merge request!6Add OCI standard annotation labels to every build
Pipeline #5305 passed
......@@ -24,7 +24,14 @@ container-build:
- export VCS_URL=$CI_PROJECT_URL
script:
- si-fix "${CI_REGISTRY_BUILD_DOCKERFILE:-./Dockerfile}"
- 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 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