1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00
Commit graph

48 commits

Author SHA1 Message Date
shimataro
8f0e25e199
Feature/node20 (#268)
* Update to Node 20 (#267)

* Update action.yml

* Update build.yml

* update CHANGELOG

* Drop old containers

* update CHANGELOG

---------

Co-authored-by: Po Chen <chenpaul914@gmail.com>
2024-02-11 11:04:28 +09:00
shimataro
9e1a5e7913
use cache for npm (#263) 2023-10-13 09:39:50 +09:00
shimataro
ccfb951a8e
fix; files that didn't backed up is not removed in "post" phase (#256)
* fix; files that didn't backed up is not removed in "post" phase

* output logs

* output log in main phase

* update log text

* update log text

* create directory only if not exist

* amend step name
2023-10-11 16:20:54 +09:00
shimataro
51874aa964
exit if differ (#254) 2023-10-11 05:25:38 +09:00
shimataro
2983fc456f
Feature/remove old runner (#249)
* Drop runnner: macOS 10.15, Ubuntu 18.04

* update README

* update CHANGELOG

* update key of bitbucket.com
2023-10-09 18:25:53 +09:00
shimataro
c8a575584e
set workflow name (#226)
* set workflow name

* update actions/checkout version: v2 -> v3

* update actions/setup-node version: v1 -> v3
2022-12-21 11:14:30 +09:00
shimataro
da84e6bf98
Feature/ci (#225)
* reuse workflows
https://docs.github.com/en/actions/using-workflows/reusing-workflows

* reuse container workflows

* integrate reusable-verify-container with reusable-verify

* container -> docker_iamge

* update description
2022-12-20 22:11:39 +09:00
shimataro
1512adeca4
Feature/GitHub key (#122)
* always prepend key of github.com

* update README and CHANGELOG

* update tests

* test to connect bitbucket.org

* update test

* update rest tests
2022-11-03 03:41:25 +09:00
shimataro
fc21805258
Update nodejs version to 16 (#208) (#216)
* Update nodejs version to 16 (#208)

* Update nodejs version to 16

* Update runtime used to node16

* update CHANGELOG

Co-authored-by: Davide Doronzo <duddu@users.noreply.github.com>
2022-10-30 22:47:45 +09:00
shimataro
adea214356
Feature/refactor (#209)
* Change code style to 1TBS

* refactor creating ".ssh" directoy

* Add Windows-2022 / macOS-11 / macOS-12 / Ubuntu-22.04
Drop Ubuntu-16.04

* Drop centos:8 (Docker container)

* add CentOS 8 Stream (Docker container)

* use YAML alias

* Revert "use YAML alias"

This reverts commit 1ddbc7fde8.

* update .eslintrc

* move calling main to front
2022-10-30 19:57:06 +09:00
shimataro
92fef6465a
Feature/virtual environments (#187)
* remove ubuntu-16.04 virtual environment; https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021/

* add `windows-2016` virtual environment

* update README/CHANGELOG

* remove ubuntu-16.04
fix tests on Windows/macOS
2021-08-01 22:31:32 +09:00
shimataro
954c620b17
Feature/no known hosts (#181)
* add "if_key_exists"

* add test

* fix flag

* fix SSH connection commands

* add test for if_key_exists=ignore

* add test for if_key_exists=fail

* add tests to Windows / macOS

* update CHANGELOG

* update badges

* update README

* fix README

* update README

* test no_known_hosts parameter

* implement

* ignore known_hosts if no_known_hosts is true

* refactor

* no_known_hosts is false

* Revert "no_known_hosts is false"

This reverts commit 206d310c5c.

* test on Windows / macOS

* test on Docker containers

* add tests for Docker containers

* test no_known_hosts parameter

* implement

* ignore known_hosts if no_known_hosts is true

* refactor

* no_known_hosts is false

* Revert "no_known_hosts is false"

This reverts commit 206d310c5c.

* test on Windows / macOS

* test on Docker containers

* use `known_hosts: no` instead of `no_known_hosts: true`

* update README

* update README

* "known_hosts: no" -> "known_hosts: unnecessary"

* update README

* update README

* update CHANGELOG
2021-03-21 15:43:28 +09:00
shimataro
f8aa6610de
Feature/verify on container alpine (#180)
* support Alpine Docker container

* add Git package

* update README

* update README; add install commands

* update CHANGELOG

* fix typo

* fix typo
2021-03-21 14:56:48 +09:00
shimataro
88fb14d113
add "if_key_exists" (#179)
* add "if_key_exists"

* add test

* fix flag

* fix SSH connection commands

* add test for if_key_exists=ignore

* add test for if_key_exists=fail

* add tests to Windows / macOS

* update CHANGELOG

* update badges

* update README

* fix README

* update README

* add tests for Docker containers
2021-03-18 20:57:28 +09:00
shimataro
68b956be12
Feature/centos (#176)
* check on CentOS container

* update README

* update links

* update CHANGELOG

* refactor insertLf()
2021-02-24 21:24:03 +09:00
shimataro
4b6bc79244
Feature/matrix docker container (#173)
* use matrix for Docker container

* update badge
2021-02-23 10:38:18 +09:00
shimataro
5b144c9cec
remove "pull_request" trigger from CI (#172) 2021-02-23 10:25:44 +09:00
shimataro
e83b5ac86d
support OpenSSH key format (#171)
* Make up for LF in last line of SSH key file

* refactor insertLf()

* add test for OpenSSH format

* add PKCS8 format

* apply to other virtual machines

* update README

* update CHANGELOG

Co-authored-by: Tatsunori Uchino <tats.u@live.jp>
2021-02-23 10:22:30 +09:00
shimataro
026e5f82bf
Feature/container (#170)
* support Docker container

* move .ssh to /root

* remove print step

* change home directory for Docker container

* print HOME

* print home

* print home

* update dist file

* update dirname

* update CHANGELOG

* add badge
2021-02-08 23:31:19 +09:00
shimataro
a988908393
Feature/ignore node modules (#166)
* Ignore Node files that should not be tracked

The list can be fetched by `gibo dump node`.

* Untrack node_modules/@actions

* Cache node_modules

* Don't add node_modules ins Bash scripts

* Use ncc to pack dependencies

* Change final product path

Remove & ignore previous one (lib/main.js{,.map})

* Disable PR check using author's key

Author's key is not passed to PR builds (#164)

* update settings

* update CHANGELOG

* update build.yml

Co-authored-by: Tatsunori Uchino <tats.u@live.jp>
2021-02-08 22:19:05 +09:00
shimataro
d93f5c693a
Build on all supported platforms (#139)
* Build on all supported platforms

* rename job
2020-06-06 15:37:44 +09:00
shimataro
01556dafe4
add Ubuntu 20.04 (#135)
* add Ubuntu 20.04

* macOS -> macOS Catalina

* rename CI files

* Windows -> Windows Server 2019

* update README

* update CHANGELOG
2020-06-06 11:05:25 +09:00
shimataro
e45e94049a
build on pull_request (#133) 2020-05-11 21:36:22 +09:00
shimataro
536ce5b853
verify on pull_request (#132) 2020-05-11 18:11:13 +09:00
shimataro
5f6cc712bb
version 2.0.0 (#116)
* Feature/private key (#71)

* * rename private-key to key

* * update CI

* * update README / CHANGELOG

* Feature/rename known hosts (#72)

* * rename known-hosts to known_hosts

* * update CI

* * update README

* * update CHANGELOG

* * update README

* Feature/known hosts required (#73)

* * make known-hosts required

* * update CI

* * update README

* * update CHANGELOG

* * update README

* Feature/docs v2 (#80)

* * update version in README

* * update badge URL

* * remove duplicated reference

* * update versions

* * fix CHANGELOG

* * fix version
2020-02-08 18:58:07 +09:00
shimataro
2a85485fc9
Feature/checkout v2 (#109)
* * update checkout version

* * update README
2020-02-08 17:20:09 +09:00
shimataro
262b0e5f7b
* remove .bak file (#70) 2020-01-18 12:25:23 +09:00
shimataro
3fe6393646
Feature/revert ci (#64)
* Revert "* update CI"

This reverts commit ab98bad3d9.

* * use itself

* * update itself

* * chckout codes

* * test

* * revert test
2020-01-18 10:57:51 +09:00
shimataro
3ba1bf8166
Feature/ci (#63)
* * update CI version

* * add libs

* * update CI
2020-01-18 10:28:30 +09:00
shimataro
4e56f6f7e9
* add verify step (#62) 2020-01-18 10:02:21 +09:00
shimataro
7952ff5445
Feature/ci (#59)
* * update verifier

* * update manifest file

* * SSH to github.com

* Revert "* SSH to github.com"

This reverts commit 38f9acf9bd.
2020-01-18 08:53:09 +09:00
shimataro
1da42535e4
Feature/ubuntu 16.04 (#55)
* * Add test of Ubuntu 16.04

* * update README

* * add badge
2019-12-31 13:23:55 +09:00
shimataro
f7c46b12d8
Feature/badges (#52)
* * use different actions for verify

* * add badges for every platforms
2019-12-31 10:56:18 +09:00
shimataro
e6c4bf5dc0
* verify HEAD refs 2019-12-22 20:44:22 +09:00
shimataro
a5366d553c
* update verify for ssh_config (#40) 2019-12-22 19:11:46 +09:00
shimataro
c2f68a094e
Feature/config (#39)
* * add `config` option

* * test feature/config

* * update lib

* * update test

* * update README

* * update SHA on verify

* * fix SHA

* * fix SHA

* Revert "* update SHA on verify"

This reverts commit ee52bcaa27.

* * revert refs

* * fix refs
2019-12-22 19:01:05 +09:00
shimataro
1d03f1dc42
* change SSH key name (#36) 2019-11-23 12:56:45 +09:00
shimataro
790461e0f1
* add test without name (#35) 2019-11-23 12:49:17 +09:00
shimataro
b957d8dcfb
Feature/print-created-files (#34)
* * print created files

* * fix location of .ssh
2019-11-23 12:40:36 +09:00
shimataro
00070c73aa
* build on push (#33) 2019-11-23 12:34:43 +09:00
shimataro
14197b5b23
* matrix.platform -> matrix.os (#32) 2019-11-23 12:32:01 +09:00
shimataro
75bbea63d1
* change trigger (#31) 2019-09-29 20:12:59 +09:00
shimataro
65b7588cc3
Feature/verify (#30)
* * verify connection

* * use git clone for SSH connection test

* rerun CI

* rerun CI

* * rename verification

* * add badge

* * cross-platform verification

* * remove known_hosts for test

* Revert "* remove known_hosts for test"

This reverts commit 96f512a3a1.
2019-09-29 20:06:23 +09:00
shimataro
f250ef75b2
* turn fail-fast off (#17) 2019-09-22 08:34:17 +09:00
shimataro
085569f652
Feature/dependencies (#16)
* * remove also=dev

* * only production

* * update CI
2019-09-22 08:29:38 +09:00
shimataro
ee1e03f3de
* build check on "development" and "v*" branches (#13) 2019-09-22 07:50:58 +09:00
shimataro
68db9bb092
* change workflow name (#10) 2019-09-19 07:10:37 +09:00
shimataro
3f31f3b902
* add build check CI (#7)
* * add build check CI

* * remove "npm i"

* * update CHANGELOG
2019-09-18 23:13:14 +09:00