From cd423a7d3a9bb74adf64ad1db854c8d27263b3e9 Mon Sep 17 00:00:00 2001 From: Christoph Honal Date: Fri, 14 Feb 2020 12:33:18 +0100 Subject: [PATCH] Add caching --- .dockerignore | 4 +++- .drone.yml | 4 +++- .gitignore | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 95ee77f..cb81c9d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ scripts/ config/ -data/ \ No newline at end of file +data/ +README.md +.drone.yml \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index 0df034e..5db211c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,9 +18,11 @@ steps: - docker buildx create --use --name crosscomp - docker buildx inspect --bootstrap - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD registry.chrz.de - - docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty + - docker buildx build --platform linux/amd64,linux/arm/v7 --output=type=image,push=true --progress tty --build-arg PROP_SERVER --build-arg PROP_SERVER_USER --build-arg PROP_SERVER_KEY --build-arg PROP_DIR_SDR --build-arg PROP_DIR_DECODER + --cache-to=type=registry,ref=registry.chrz.de/redsat/move2docker,mode=max + --cache-from=type=registry,ref=registry.chrz.de/redsat/move2docker -t registry.chrz.de/redsat/move2docker . environment: PROP_SERVER_USER: diff --git a/.gitignore b/.gitignore index f1ac045..adbb97d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -.env data/ \ No newline at end of file