forked from egor-tensin/setup-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (40 loc) · 1.12 KB
/
action.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
name: Set up WireGuard
description: Set up WireGuard connection
inputs:
endpoint:
description: Endpoint in the HOST:PORT format
required: true
endpoint_public_key:
description: Public key of the endpoint
required: true
private_ips:
description: Comma-separated list of IP addresses
required: true
allowed_ips:
description: Comma-separated list of netmasks
required: true
private_key:
description: Private key
required: true
dns_servers:
description: Comma-separated list of DNS servers
required: false
keep_alive:
description: Useful for NAT traversal
required: false
runs:
using: composite
steps:
- run: ${GITHUB_ACTION_PATH}/setup-wireguard.sh
shell: bash
env:
ALLOWED_IPS: '${{ inputs.allowed_ips }}'
ENDPOINT: '${{ inputs.endpoint }}'
ENDPOINT_PUBLIC_KEY: '${{ inputs.endpoint_public_key }}'
PRIVATE_IPS: '${{ inputs.private_ips }}'
PRIVATE_KEY: '${{ inputs.private_key }}'
DNS_SERVERS: '${{ inputs.dns_servers }}'
KEEP_LIVE: '${{ inputs.keep_alive }}'
branding:
icon: star
color: green