Commit 33165047 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Adicionando a instrução para fazer build com cache.

[SOMA-6617]
[SOMA-4534]
parent 48872469
......@@ -95,12 +95,12 @@ static_check:
- docker pull $DOCKER_REGISTRY$DOCKER_REGISTRY_IMAGE_DIND:$LAST || true
- cd Docker/posix/
- |
docker build $BUILD_ARGS \
docker build $BUILD_ARGS --cache-from $DOCKER_REGISTRY$CI_REGISTRY_IMAGE:$LAST \
--tag $DOCKER_REGISTRY$CI_REGISTRY_IMAGE:$VERSION \
--tag $DOCKER_REGISTRY$CI_REGISTRY_IMAGE:$LAST .
- sed -r "s%^FROM .*%FROM $DOCKER_REGISTRY$CI_REGISTRY_IMAGE:$VERSION%" Dockerfile_sgadocker > /tmp/sgadind
- |
docker build \
docker build --cache-from $DOCKER_REGISTRY$DOCKER_REGISTRY_IMAGE_DIND:$LAST \
--tag $DOCKER_REGISTRY$DOCKER_REGISTRY_IMAGE_DIND:$VERSION \
--tag $DOCKER_REGISTRY$DOCKER_REGISTRY_IMAGE_DIND:$LAST -f /tmp/sgadind .
- rm -f /tmp/sgadind
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment