Closed thematrixdev closed 1 year ago
---
kind: pipeline
type: docker
name: PR validation build docker image
platform:
arch: amd64
os: linux
trigger:
event:
include:
- pull_request
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
- name: Build ml_all docker image for pull request
image: plugins/docker
environment:
DOCKER_BUILDKIT: 1
volumes:
- name: dockersock
path: /var/run/docker.sock
settings:
dockerfile: docker/MlAllDockerfile
context: docker/
registry: quay.io
repo: quay.io/personal/ml_all
privileged: true
purge: false
build_args:
- BUILDKIT_INLINE_CACHE=1
cache_from: quay.io/personal/ml_all:latest
tags:
- ${DRONE_PULL_REQUEST}
username:
from_secret: DOCKER_QUAY_USERNAME
password:
from_secret: DOCKER_QUAY_PASSWORD
I am using this plugin: https://plugins.drone.io/plugins/docker
.drone.yaml
dockerfile-php
Drone shows:
May I know how to enable buildkit?
Thanks.