docker
This commit is contained in:
@@ -92,15 +92,13 @@ Build:
|
|||||||
# notice the cache-from, which is going to use the image we just pulled locally
|
# notice the cache-from, which is going to use the image we just pulled locally
|
||||||
# the built image is tagged locally with the commit SHA, and then pushed to
|
# the built image is tagged locally with the commit SHA, and then pushed to
|
||||||
# the GitLab registry
|
# the GitLab registry
|
||||||
- >
|
- docker build \
|
||||||
docker build
|
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE" \
|
||||||
--pull
|
--label "org.opencontainers.image.url=$CI_PROJECT_URL" \
|
||||||
--label "org.opencontainers.image.title=$CI_PROJECT_TITLE"
|
--label "org.opencontainers.image.created=$CI_JOB_STARTED_AT" \
|
||||||
--label "org.opencontainers.image.url=$CI_PROJECT_URL"
|
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA" \
|
||||||
--label "org.opencontainers.image.created=$CI_JOB_STARTED_AT"
|
--label "org.opencontainers.image.version=$CI_COMMIT_REF_NAME" \
|
||||||
--label "org.opencontainers.image.revision=$CI_COMMIT_SHA"
|
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA \
|
||||||
--label "org.opencontainers.image.version=$CI_COMMIT_REF_NAME"
|
|
||||||
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
|
||||||
.
|
.
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user