All checks were successful
continuous-integration/drone/push Build is passing
42 lines
914 B
YAML
42 lines
914 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build_dev
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- custom
|
|
- promote
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
|
|
- name: clone
|
|
image: harbor.dc.teramesh.cn/library/bitnami/git:latest
|
|
pull: if-not-exists
|
|
commands:
|
|
- git clone $DRONE_REPO_LINK .
|
|
- git checkout $DRONE_COMMIT
|
|
|
|
- name: build_dev
|
|
image: harbor.dc.teramesh.cn/library/moby/buildkit:master
|
|
pull: if-not-exists
|
|
environment:
|
|
PIP_INDEX_URL:
|
|
from_secret: PIP_INDEX_URL
|
|
HARBOR_DOCKER_AUTH:
|
|
from_secret: HARBOR_DOCKER_AUTH
|
|
commands:
|
|
- mkdir ~/.docker
|
|
- "echo $HARBOR_DOCKER_AUTH > ~/.docker/config.json"
|
|
- >
|
|
buildctl
|
|
--addr tcp://buildkitd:1234
|
|
build
|
|
--frontend=dockerfile.v0
|
|
--local context=.
|
|
--local dockerfile=.
|
|
--opt build-arg:PIP_INDEX_URL=$PIP_INDEX_URL
|
|
--output type=image,"name=harbor.dc.teramesh.cn/library/tools/databridge:dev",push=true |