Skip to content

Commit

Permalink
Merge pull request #84 from dokku/passphrase-support
Browse files Browse the repository at this point in the history
feat: add support for setting an ssh passphrase to use for ssh commands
  • Loading branch information
josegonzalez authored Sep 14, 2024
2 parents 7c531e1 + 8545ad0 commit 399febe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ Please note that this action is compatible with `dokku >= 0.11.6`.
-----END OPENSSH PRIVATE KEY-----
```

- `ssh_passphrase`: (_optional_) Passphrase to use when interacting with an SSH key that has a passphrase
- example value: `password`

- `trace`: (_optional_) Allows users to debug what the action is performing by enabling shell trace mode
- example value: `1`

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ inputs:
ssh_private_key:
description: "A private SSH key that has push access to your Dokku instance"
required: true
ssh_passphrase:
description: "Passphrase to use when interacting with an SSH key that has a passphrase"
required: false
default: ""
trace:
description: "Allows users to debug what the action is performing by enabling shell trace mode"
required: false
Expand All @@ -75,4 +79,5 @@ runs:
REVIEW_APP_NAME: ${{ inputs.review_app_name }}
SSH_HOST_KEY: ${{ inputs.ssh_host_key }}
SSH_PRIVATE_KEY: ${{ inputs.ssh_private_key }}
SSH_PASSPHRASE: ${{ inputs.ssh_passphrase }}
TRACE: ${{ inputs.trace }}

0 comments on commit 399febe

Please sign in to comment.