Add caching
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Christoph Honal 2020-02-15 12:24:10 +01:00
parent 27f3f0febb
commit dfd27d7d7e

View File

@ -15,7 +15,10 @@ steps:
- docker buildx create --use --name $BUILDER_ID
- 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 -t registry.chrz.de/public/hello-ci .
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --output=type=image,push=true --progress tty
--cache-to=type=registry,ref=registry.chrz.de/cache/hello-ci,mode=max
--cache-from=type=registry,ref=registry.chrz.de/cache/hello-ci
-t registry.chrz.de/public/hello-ci .
- docker buildx rm $BUILDER_ID
volumes:
- name: docker_socket