-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
28 lines (27 loc) · 902 Bytes
/
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
# Copyright (c) 2023 OpenFaaS Ltd
name: 'Connect this runner to the SSH gateway'
description: 'All-in-one action to connect to the SSH gateway for actuated'
branding:
icon: 'arrow-right-circle'
color: 'gray-dark'
inputs:
gateway:
description: 'The gateway hostname address or IP address.'
required: false
default: ""
block:
description: 'Whether to block until the tmux connection is released'
required: false
default: "true" # Can be "block" or set to any other value to skip blocking
runs:
using: 'composite'
steps:
- id: setup_ssh_for_actor
uses: self-actuated/setup-sshd-for-actor@master
- id: connect_to_ssh_gateway
uses: self-actuated/connect-ssh-gateway@master
env:
GATEWAY: ${{ inputs.gateway }}
- id: block
if: ${{ inputs.block == 'true' }}
uses: self-actuated/block-with-tmux@master