Skip to content
Snippets Groups Projects
Commit 9024c9aa authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

another try for docker caching

parent 9a180d6e
No related branches found
No related tags found
1 merge request!5Resolve "Make Proxy Use Autodevops"
......@@ -49,10 +49,10 @@ build:
echo "Building Heroku-based application using gliderlabs/herokuish docker image..."
cp /build/Dockerfile Dockerfile
fi
- docker pull $CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG || true
- docker pull $CI_APPLICATION_REPOSITORY:latest || true
- |
docker build \
--cache-from $CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG \
--cache-from $CI_APPLICATION_REPOSITORY:latest \
--build-arg BUILDPACK_URL="$BUILDPACK_URL" \
--build-arg HTTP_PROXY="$HTTP_PROXY" \
--build-arg http_proxy="$http_proxy" \
......@@ -64,6 +64,7 @@ build:
--build-arg no_proxy="$no_proxy" \
$AUTO_DEVOPS_BUILD_IMAGE_EXTRA_ARGS \
--tag "$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG" .
- docker push "$CI_APPLICATION_REPOSITORY:latest"
- docker push "$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG"
only:
- branches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment