forked from justice3120/bitrise-step-open-vpn
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathstep.yml
105 lines (91 loc) · 3.35 KB
/
step.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
title: |-
Connect to OpenVPN Server
summary: |
Establish a VPN connection with the specified OpenVPN server.
description: |
The Step establishes a VPN connection with the specified OpenVPN server.
### Configuring the Step
Before you start:
1. Build an OpenVPN server. You can read [this article](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-18-04) on how to construct an OpenVPN server.
1. Register the contents of CA certificate, client certificate, client private key, base64 encoded as Bitrise Secrets.
You can easily retrieve the contents of Base64 using command: `$ base64 <certificate or private key file path>`
To configure the Step:
1. Add the OpenVPN server IP or hostname to the **Host** input.
1. Add the OpenVPN server port number to the **Port** input. The port number is `1194` by default.
1. Specify the OpenVPN server protocol in the **Protocol** input.
1. Add the CA certificate, client certificate, and client private key Secrets to their respective inputs.
### Useful links
* [Using the Connect to OpenVPN Server Step](https://devcenter.bitrise.io/en/builds/connecting-to-a-vpn-during-a-build.html#using-the-connect-to-openvpn-server-step)
* [How To Set Up an OpenVPN Server](https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-18-04)
* [Configuring network access for Bitrise build machines](https://devcenter.bitrise.io/en/infrastructure/build-machines/configuring-your-network-to-access-our-build-machines.html)
### Related Steps
* [Cisco VPN connect](https://www.bitrise.io/integrations/steps/vpnc-connect)
website: https://github.com/bitrise-steplib/bitrise-step-open-vpn
source_code_url: https://github.com/bitrise-steplib/bitrise-step-open-vpn
support_url: https://github.com/bitrise-steplib/bitrise-step-open-vpn/issues
type_tags:
- access-control
is_requires_admin_user: true
is_always_run: false
is_skippable: false
run_if: ""
deps:
brew:
- name: openvpn
apt_get:
- name: openvpn
- name: net-tools
toolkit:
bash:
entry_file: step.sh
inputs:
- host:
opts:
title: "Host"
summary: "Open VPN Server IP or Hostname"
description: |
Open VPN Server IP or Hostname.
ex1. 111.111.111.111
ex2. hoge.com
is_expand: true
is_required: true
- port: 1194
opts:
title: "Port"
summary: "Open VPN Server Port number"
is_expand: true
is_required: true
- proto: udp
opts:
title: "Protocol"
summary: "Open VPN Server Protocol"
is_expand: true
is_required: true
value_options:
- udp
- tcp
- ca_crt: "$VPN_CA_CRT_BASE64"
opts:
title: "Base64 encoded CA Certificate"
summary: "Base64 encoded CA Certificate"
is_expand: true
is_required: true
is_sensitive: true
- client_crt: "$VPN_CLIENT_CRT_BASE64"
opts:
title: "Base64 encoded Client Certificate"
summary: "Base64 encoded Client Certificate"
is_expand: true
is_required: true
is_sensitive: true
- client_key: "$VPN_CLIENT_KEY_BASE64"
opts:
title: "Base64 encoded Client Private Key"
summary: "Base64 encoded Client Private Key"
is_expand: true
is_required: true
is_sensitive: true
outputs:
- OPENVPN_LOG_PATH:
opts:
title: "Output log file path"