2
0
mirror of https://github.com/offen/website.git synced 2024-12-22 21:10:23 +01:00

fix bad docker layer cache locations

This commit is contained in:
Frederik Ring 2019-09-11 13:54:22 +02:00
parent 5a1fb6698e
commit ecedd47c4d

View File

@ -169,12 +169,13 @@ jobs:
name: Load Docker image layer cache
command: |
set +o pipefail
docker load -i /caches/app.tar | true
docker load -i /caches/proxy.tar | true
docker load -i /caches/server.tar | true
- run:
name: Build application Docker image
command: |
docker build -t offen/server:$DOCKER_IMAGE_TAG -f build/server/Dockerfile .
docker build --build-arg siteurl=$SITEURL -t offen/proxy:$DOCKER_IMAGE_TAG -f build/proxy/Dockerfile .
docker build --cache-from=offen/server -t offen/server:$DOCKER_IMAGE_TAG -f build/server/Dockerfile .
docker build --build-arg --cache-from=offen/proxy siteurl=$SITEURL -t offen/proxy:$DOCKER_IMAGE_TAG -f build/proxy/Dockerfile .
- run:
name: Save Docker image layer cache
command: |