ci: enable building with BuildKit for Compose
All checks were successful
continuous-integration/drone/push Build is passing

ref: https://www.docker.com/blog/faster-builds-in-compose-thanks-to-buildkit-support/
This commit is contained in:
surtur 2021-03-09 10:17:14 +01:00
parent 6b52682f57
commit b58f935123
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -86,6 +86,9 @@ steps:
volumes:
- name: s
path: /var/run/docker.sock
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
commands:
- docker-compose build --no-cache --pull
@ -161,6 +164,11 @@ trigger:
event:
exclude: [pull_request, tag]
environment:
# ref: https://www.docker.com/blog/faster-builds-in-compose-thanks-to-buildkit-support/
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
node:
r: main