Skip to content

Commit

Permalink
ci: enhance GitHub Actions with Protocol Configs
Browse files Browse the repository at this point in the history
- Add a new GitHub Actions job `testing06` for testing in IPv6 environment with specific steps and parameters
- Introduce `protocol` input for the GitHub Action with a description of valid values and default setting
- Introduce `proxy_protocol` input for the GitHub Action with a description of valid values and default setting

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jan 21, 2024
1 parent 9b978f0 commit c5f047c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,25 @@ jobs:
script: |
whoami && echo 'hello world' && touch todo.txt
sudo whoami
testing06:
name: ipv6
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1

- name: testing in ipv6
uses: ./
with:
host: "fe80::6c:d6ff:fe09:79d4"
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
protocol: "tcp6"
script_stop: true
request_pty: true
command_timeout: 30s
script: |
whoami && echo 'hello world' && touch todo.txt
sudo whoami
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ inputs:
description: "SSH username."
password:
description: "SSH password."
protocol:
description: 'The IP protocol to use. Valid values are "tcp", "tcp4" or "tcp6". Default to tcp.'
sync:
description: "Enable synchronous execution if multiple hosts are involved."
use_insecure_cipher:
Expand Down Expand Up @@ -40,6 +42,8 @@ inputs:
description: "SSH proxy username."
proxy_password:
description: "SSH proxy password."
proxy_protocol:
description: 'The IP protocol to use. Valid values are "tcp", "tcp4" or "tcp6". Default to tcp.'
proxy_passphrase:
description: "SSH proxy key passphrase."
proxy_timeout:
Expand Down

0 comments on commit c5f047c

Please sign in to comment.