Skip to content

Commit

Permalink
'custom_dns' in docker build steps to workaround dind DNS issues
Browse files Browse the repository at this point in the history
Ref. drone-plugins/drone-docker#193
Note: this disables cloud.drone.io from building the images, as
the alternative DNS servers are internal-only
  • Loading branch information
SamuAlfageme committed Jan 5, 2021
1 parent 01683f4 commit 1a2d430
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ steps:
from_secret: dockerhub_password
build_args:
- VERSION=${DRONE_SEMVER_SHORT}-g${DRONE_COMMIT:0:7}
custom_dns:
- 128.142.17.5
- 128.142.16.5

---
kind: pipeline
Expand Down Expand Up @@ -60,6 +63,9 @@ steps:
from_secret: dockerhub_password
build_args:
- VERSION=${DRONE_TAG}
custom_dns:
- 128.142.17.5
- 128.142.16.5

---
kind: pipeline
Expand Down Expand Up @@ -89,3 +95,6 @@ steps:
from_secret: dockerhub_password
build_args:
- VERSION=${DRONE_TAG}
custom_dns:
- 128.142.17.5
- 128.142.16.5

0 comments on commit 1a2d430

Please sign in to comment.