-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
53 lines (49 loc) · 1.91 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
44
45
46
47
48
49
50
51
52
---
name: 'NixOS deploy'
description: 'Deploy the NixOS config'
inputs:
nixos_robot_key:
description: 'The private key for the robot user.'
required: true
nixos_deploy_service:
description: 'The service to start to trigger the deployment.'
required: true
nixos_deploy_fixed_hosts:
description: 'The hosts to deploy to on every run.'
required: false
default: ''
nixos_deploy_fixed_tunnel_ports:
description: 'The relay ports to deploy to on every run.'
required: false
default: ''
nixos_deploy_sshrelay_domain:
description: 'The SSH relay via which to connect to tunneled hosts.'
required: false
default: 'sshrelay.ocb.msf.org'
nixos_deploy_sshrelay_user:
description: 'The user to connect to the SSH relay.'
required: false
default: 'tunneller'
nixos_deploy_sshrelay_port:
description: 'The port to connect to the SSH relay.'
required: false
default: '22'
nixos_deploy_sshrelay_public_key:
description: 'The public key for the SSH relay'
required: false
default: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDsn2Dvtzm6jJyL9SJY6D1/lRwhFeWR5bQtSSQv6bZYf'
runs:
using: composite
steps:
- name: Run the deployment script
run: ${{ github.action_path }}/deploy.sh
shell: bash
env:
INPUT_NIXOS_ROBOT_KEY: ${{ inputs.nixos_robot_key }}
INPUT_NIXOS_DEPLOY_SERVICE: ${{ inputs.nixos_deploy_service }}
INPUT_NIXOS_DEPLOY_FIXED_HOSTS: ${{ inputs.nixos_deploy_fixed_hosts }}
INPUT_NIXOS_DEPLOY_FIXED_TUNNEL_PORTS: ${{ inputs.nixos_deploy_fixed_tunnel_ports }}
INPUT_NIXOS_DEPLOY_SSHRELAY_DOMAIN: ${{ inputs.nixos_deploy_sshrelay_domain }}
INPUT_NIXOS_DEPLOY_SSHRELAY_USER: ${{ inputs.nixos_deploy_sshrelay_user }}
INPUT_NIXOS_DEPLOY_SSHRELAY_PORT: ${{ inputs.nixos_deploy_sshrelay_port }}
INPUT_NIXOS_DEPLOY_SSHRELAY_PUBLIC_KEY: ${{ inputs.nixos_deploy_sshrelay_public_key }}