It seems add_host
field not work. I got log message error Error logging in to v2 endpoint, trying next endpoint: Get https://harbor.edu.com/v2/: dial tcp: lookup harbor.edu.com on 127.0.0.11:53: no such host
. Below is my partial .drone.yaml file:
...
- name: image
image: plugins/docker
settings:
add_host:
- harbor.edu.com:172.16.11.198
repo: harbor.edu.com/library/fastdfs-test
username: admin
password: Harbor12345
insecure: true
registry: harbor.edu.com
dockerfile: ./Dockerfile
debug: true
tags:
- latest
- master
...