fix
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Jeffrey Paul 2022-11-28 02:06:30 +01:00
parent 2cb70e2fe7
commit 36616aa2b4
1 changed files with 14 additions and 9 deletions

View File

@ -3,17 +3,22 @@ name: test-docker-build
steps:
- name: test-docker-build
#image: plugins/docker
image: plugins/kaniko
image: plugins/docker
#image: plugins/kaniko
commands:
- echo nameserver 116.202.204.30 > /etc/resolv.conf
- ping -c 1 google.com
- find /var/run
- DOCKER_HOST=unix:///var/run/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:
dry_run: true
debug: true
#privileged: 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}