woodpecker/pipeline/samples/sample_8_network_mode
Patrick Schratz 856b2ef8c7
pre-commit fixes (#2669)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-10-31 09:14:09 +01:00
..
pipeline.json Buildin Env Vars, use _URL for all links/urls (#1794) 2023-05-31 18:03:38 +02:00
pipeline.yml Add prettier (#2600) 2023-10-24 14:42:05 +02:00
README.md pre-commit fixes (#2669) 2023-10-31 09:14:09 +01:00

Example

Compile the yaml to the intermediate representation:

pipec compile

Execute the intermediate representation:

pipec exec

This example shows how to use the network_mode option to use the network defined by other container. This is useful for example to allow the CI to connect with servers behind a VPN.

Before to start you need to create a container that connects to the VPN (using one of the openvpn client images like https://github.com/ekristen/docker-openvpn-client).