fix
This commit is contained in:
parent
2cb70e2fe7
commit
91adcf7731
29
.drone.yml
29
.drone.yml
|
@ -1,19 +1,18 @@
|
|||
kind: pipeline
|
||||
name: test-docker-build
|
||||
|
||||
|
||||
steps:
|
||||
- name: test-docker-build
|
||||
#image: plugins/docker
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
dry_run: true
|
||||
repo: test/test
|
||||
target: final
|
||||
custom_dns: [ 116.202.204.30 ]
|
||||
username:
|
||||
from_secret: registry_username
|
||||
password:
|
||||
from_secret: registry_password
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA}
|
||||
- ${DRONE_BRANCH}
|
||||
- name: test
|
||||
image: docker:dind
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- echo nameserver 116.202.204.30 > /etc/resolv.conf
|
||||
- docker ps -a
|
||||
- docker build .
|
||||
volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
|
Loading…
Reference in New Issue