mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Merge branch 'feature/v2' into feature/rename-known-hosts
This commit is contained in:
commit
04ef7d8ec3
11 changed files with 26 additions and 25 deletions
18
README.md
18
README.md
|
@ -27,7 +27,7 @@ steps:
|
|||
- name: Install SSH key
|
||||
uses: shimataro/ssh-key-action@v1
|
||||
with:
|
||||
private-key: ${{ secrets.SSH_KEY }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
name: id_rsa # optional
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }} # optional
|
||||
config: ${{ secrets.CONFIG }} # ssh_config; optional
|
||||
|
@ -42,7 +42,7 @@ See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/wor
|
|||
If you want to install multiple keys, call this action multiple times.
|
||||
It is useful for port forwarding.
|
||||
|
||||
**NOTE:** When this action is called multiple times, **the contents of `known_hosts` and `config` will be appended**. `private-key` must be saved as different name, by using `name` option.
|
||||
**NOTE:** When this action is called multiple times, **the contents of `known_hosts` and `config` will be appended**. `key` must be saved as different name, by using `name` option.
|
||||
|
||||
```yaml
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -50,7 +50,7 @@ steps:
|
|||
- name: Install SSH key of bastion
|
||||
uses: shimataro/ssh-key-action@v1
|
||||
with:
|
||||
private-key: ${{ secrets.SSH_KEY_OF_BASTION }}
|
||||
key: ${{ secrets.SSH_KEY_OF_BASTION }}
|
||||
name: id_rsa-bastion
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS_OF_BASTION }}
|
||||
config: |
|
||||
|
@ -61,7 +61,7 @@ steps:
|
|||
- name: Install SSH key of target
|
||||
uses: shimataro/ssh-key-action@v1
|
||||
with:
|
||||
private-key: ${{ secrets.SSH_KEY_OF_TARGET }}
|
||||
key: ${{ secrets.SSH_KEY_OF_TARGET }}
|
||||
name: id_rsa-target
|
||||
known_hosts: ${{ secrets.KNOWN_HOSTS_OF_TARGET }} # will be appended!
|
||||
config: | # will be appended!
|
||||
|
@ -126,15 +126,15 @@ The scripts and documentation in this project are released under the [MIT Licens
|
|||
See [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
[image-build]: https://github.com/shimataro/ssh-key-action/workflows/Build/badge.svg?event=push&branch=v1
|
||||
[link-build]: https://github.com/shimataro/ssh-key-action
|
||||
[link-build]: https://github.com/shimataro/ssh-key-action/actions?query=workflow%3ABuild
|
||||
[image-verify-windows]: https://github.com/shimataro/ssh-key-action/workflows/Windows/badge.svg?event=push&branch=v1
|
||||
[link-verify-windows]: https://github.com/shimataro/ssh-key-action
|
||||
[link-verify-windows]: https://github.com/shimataro/ssh-key-action/actions?query=workflow%3AWindows
|
||||
[image-verify-macos]: https://github.com/shimataro/ssh-key-action/workflows/macOS/badge.svg?event=push&branch=v1
|
||||
[link-verify-macos]: https://github.com/shimataro/ssh-key-action
|
||||
[link-verify-macos]: https://github.com/shimataro/ssh-key-action/actions?query=workflow%3AmacOS
|
||||
[image-verify-ubuntu]: https://github.com/shimataro/ssh-key-action/workflows/Ubuntu/badge.svg?event=push&branch=v1
|
||||
[link-verify-ubuntu]: https://github.com/shimataro/ssh-key-action
|
||||
[link-verify-ubuntu]: https://github.com/shimataro/ssh-key-action/actions?query=workflow%3AUbuntu
|
||||
[image-verify-ubuntu1604]: https://github.com/shimataro/ssh-key-action/workflows/Ubuntu%2016.04/badge.svg?event=push&branch=v1
|
||||
[link-verify-ubuntu1604]: https://github.com/shimataro/ssh-key-action
|
||||
[link-verify-ubuntu1604]: https://github.com/shimataro/ssh-key-action/actions?query=workflow%3A%22Ubuntu+16.04%22
|
||||
[image-release]: https://img.shields.io/github/release/shimataro/ssh-key-action.svg
|
||||
[link-release]: https://github.com/shimataro/ssh-key-action/releases
|
||||
[image-license]: https://img.shields.io/github/license/shimataro/ssh-key-action.svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue