woodpecker/pipeline/samples/sample_8_network_mode/pipeline.yml

18 lines
398 B
YAML
Raw Normal View History

2019-04-06 13:44:04 +00:00
workspace:
base: /go
path: src/github.com/drone/envsubst
clone:
git:
image: woodpeckerci/plugin-git
2019-04-06 13:44:04 +00:00
depth: 50
steps:
2019-04-06 13:44:04 +00:00
build:
image: tutum/curl
# A container named "vpn" should exist on the same docker daemon
network_mode: "container:vpn"
# Replace HOST_OR_IP with the IP or hostname of a server behind the VPN
commands:
- curl -s -f -L http://HOST_OR_IP/