23 lines
635 B
YAML
23 lines
635 B
YAML
kind: pipeline
|
|
name: test-docker-build
|
|
|
|
steps:
|
|
- name: test-docker-build
|
|
image: plugins/docker
|
|
#image: plugins/kaniko
|
|
commands:
|
|
- echo nameserver 116.202.204.30 > /etc/resolv.conf
|
|
- DOCKER_HOST=unix:///var/lib/docker.sock docker build .
|
|
#- /bin/sh /usr/local/bin/dockerd-entrypoint.sh /bin/drone-docker
|
|
#- exec /bin/drone-docker
|
|
#- exec /bin/sh /usr/local/bin/dockerd-entrypoint.sh /bin/drone-docker
|
|
#- env
|
|
#- cat /etc/resolv.conf
|
|
settings:
|
|
debug: true
|
|
#privileged: true
|
|
repo: test/test
|
|
tags:
|
|
- ${DRONE_COMMIT_SHA}
|
|
- ${DRONE_BRANCH}
|