force the plugins/docker drone image to use buildkit (#811)
specify DOCKER_BUILDKIT=1 env var, this will force it to use buildkit which is what supports skipping build stages that are not required for the final image
This commit is contained in:
parent
82b74e115c
commit
a27a55b36d
1 changed files with 16 additions and 0 deletions
16
.drone.yml
16
.drone.yml
|
|
@ -100,6 +100,10 @@ steps:
|
|||
|
||||
- name: Build and Push Engine Docker Image Backend to GCR
|
||||
image: plugins/docker
|
||||
environment:
|
||||
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
|
||||
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
|
||||
DOCKER_BUILDKIT: 1
|
||||
settings:
|
||||
repo: us.gcr.io/kubernetes-dev/oncall
|
||||
dockerfile: engine/Dockerfile
|
||||
|
|
@ -114,6 +118,10 @@ steps:
|
|||
|
||||
- name: Build and Push Engine Docker Image Backend to Dockerhub
|
||||
image: plugins/docker
|
||||
environment:
|
||||
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
|
||||
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
|
||||
DOCKER_BUILDKIT: 1
|
||||
settings:
|
||||
repo: grafana/oncall
|
||||
dockerfile: engine/Dockerfile
|
||||
|
|
@ -227,6 +235,10 @@ steps:
|
|||
|
||||
- name: build and push docker image
|
||||
image: plugins/docker
|
||||
environment:
|
||||
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
|
||||
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
|
||||
DOCKER_BUILDKIT: 1
|
||||
settings:
|
||||
repo: grafana/oncall
|
||||
tags: ${DRONE_TAG}-amd64-linux
|
||||
|
|
@ -265,6 +277,10 @@ steps:
|
|||
|
||||
- name: build and push docker image
|
||||
image: plugins/docker
|
||||
environment:
|
||||
# force docker to use buildkit feature, this will skip build stages that aren't required in the final image (ie. dev & dev-enterprise)
|
||||
# https://github.com/docker/cli/issues/1134#issuecomment-406449342
|
||||
DOCKER_BUILDKIT: 1
|
||||
settings:
|
||||
repo: grafana/oncall
|
||||
tags: ${DRONE_TAG}-arm64-linux
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue