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

@ -86,6 +86,9 @@ steps:
volumes: volumes:
- name: s - name: s
path: /var/run/docker.sock path: /var/run/docker.sock
environment:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
commands: commands:
- docker-compose build --no-cache --pull - docker-compose build --no-cache --pull
@ -161,6 +164,11 @@ trigger:
event: event:
exclude: [pull_request, tag] 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: node:
r: main r: main