Commit Graph

48 Commits (c8594ae37d5bd9a779dc12abd0236b1bcff70119)

Author SHA1 Message Date
appleboy c8594ae37d
ci: implement GitHub Actions for remote SSH execution
- Add example GitHub Actions workflow for executing remote SSH commands using password authentication

Signed-off-by: appleboy <appleboy.tw@gmail.com>
7 months ago
Bo-Yi Wu aabaf1254d
ci: add bug report template 7 months ago
Bo-Yi Wu f916346256
ci: refactor CI workflow and improve robustness (#320)
* ci: refactor CI workflow and improve robustness

- Update GitHub Actions checkout step from version 1 to version 4 in multiple jobs within the CI workflow

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs: improve non-interactive shell command handling

- Add a Q&A section to the README with information on resolving 'command not found' errors for non-interactive shells
- Provide a solution involving editing `/etc/bash.bashrc` to ensure commands are added to the path in non-interactive shells

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs: improve documentation and CI robustness

- Update acknowledgment for the interactive shell solution in the README.md file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 months ago
Bo-Yi Wu 551964ebda
ci: optimize GitHub Actions workflow configuration
- Remove the `testing06` job related to testing IPv6 from the GitHub Actions workflow.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
9 months ago
appleboy d2d6858859
ci: enhance GitHub workflow for SSH actions and deployments
- Add a new GitHub workflow file `version.yml`
- Define environment variables `FOO` and `BAR`
- Add multiple jobs for testing different scenarios
- Include steps for SSH actions using different authentication methods
- Implement scripts for executing remote SSH commands
- Configure SSH key passphrase authentication
- Add a job for using insecure cipher
- Include a job for executing multiline SSH commands
- Implement a job for deployment to multiple hosts with different ports
- Add jobs for passing environment variables to scripts
- Configure custom environment variables format
- Implement a job for passing all ENV variables to a script
- Include jobs for cloning private repositories and logging into container registries
- Implement a job for switching users and testing IPv6 connectivity

Signed-off-by: appleboy <appleboy.tw@gmail.com>
9 months ago
Bo-Yi Wu c78141851a
ci: enhance GitHub Actions for IPv6 and flexibility (#303)
* ci: enhance GitHub Actions for IPv6 and flexibility

- Add a new CI job for testing IPv6 in GitHub Actions workflow
- Update the Docker image version from `1.7.3` to `1.7.4`
- Add a new `protocol` input parameter to the GitHub action with a default value of `tcp`
- Change the GitHub action to use a composite run steps action instead of a Docker container
- Update the `entrypoint.sh` script to use `bash` instead of `sh`, set stricter error handling, and add a function to detect client platform and architecture
- Modify the `entrypoint.sh` script to download a specific version of `drone-ssh` based on the detected client info and execute it

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* ci: refactor CI workflow and Docker setup

- Remove IPv6 ping command from CI workflow
- Uncomment Docker run configuration in action.yml

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
9 months ago
Bo-Yi Wu d134a26a1f
fix(sudo): support request_pty to execute sudo command (#288)
- Add a new job called `testing05` to the CI workflow
- Update the base image in the Dockerfile from `1.7.2` to `1.7.3`
- Update the action name, description, and author in the action.yml file
- Update the descriptions for various inputs in the action.yml file
- Add a new input `request_pty` with a description in the action.yml file
- Update the `using` and `image` fields in the action.yml file
- Update the `using` and `image` fields in the runs section of the action.yml file
- Update the `icon` and `color` fields in the branding section of the action.yml file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
12 months ago
Bo-Yi Wu b9f6bf6223
style: refine CI Workflow and Test Configurations
- Remove empty lines from the GitHub Actions CI workflow file

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 year ago
Bo-Yi Wu 5ac43dd762
chore(ssh): pass all ENV variables to script (#259) 1 year ago
Bo-Yi Wu d87d276960
ci: add Docker login and pull job to CI pipeline (#244)
- Add a new job named "testing04" for docker login and pull in ci.yml file.

ref: https://github.com/appleboy/ssh-action/issues/230
2 years ago
Bo-Yi Wu 3130c7a2bc
ci: improve CI workflow for private repository cloning (#241)
- Add a new job for git clone and pull in CI
- Clone a private repository in CI with secrets
- Remove a directory in the cloned repository

ref: https://github.com/appleboy/ssh-action/issues/65
2 years ago
Bo-Yi Wu 334f9259f2
chore: update action configuration for greater flexibility (#240)
- Update base image version from `1.6.12` to `1.6.13` in Dockerfile
- Add `envs_format` input with flexible configuration in action.yml
- Add a line to README.md pointing to action.yml for more information

fix https://github.com/appleboy/ssh-action/issues/213
2 years ago
Bo-Yi Wu 3cd1bcf771
feat: refactor code for parallel execution on multiple hosts (#237)
- Update Dockerfile to use a newer version of `drone-ssh`
- Modify `ci.yml` to use `continue-on-error` instead of commenting out code

fix https://github.com/appleboy/ssh-action/issues/233
2 years ago
Bo-Yi Wu 7bf58514db
chore(auth): allow set password and private key at same time. (#226) 2 years ago
Bo-Yi Wu d91a1af6f5
Fix(envs): set environment variable instead of bash variable (#209) 2 years ago
Bo-Yi Wu 0d5a3d0e48 test: comment the ED25519 ssh testing 2 years ago
Bo-Yi Wu dce9d565de
Update FUNDING.yml 3 years ago
Bo-Yi Wu ea5c23a2b5
Enable Sponsor Button 3 years ago
Bo-Yi Wu c732d38392 chore: Add global environments
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
3 years ago
Bo-Yi Wu ba1d4fb0eb chore(CI): show secrets.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
3 years ago
Bo-Yi Wu c7104ccac4 chore: add ED25519 example 4 years ago
Bo-Yi Wu 9fb11fb1f5 chore(host): support multiple port
https://github.com/appleboy/ssh-action/issues/85

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
Bo-Yi Wu 3ac4675689 chore: Add Multiline SSH commands interpreted as single lines 4 years ago
Bo-Yi Wu 269a4479eb chore: Multiline SSH commands interpreted as single lines 4 years ago
Bo-Yi Wu c9eebc1cde
chore: support use_insecure_cipher (#57) 5 years ago
Bo-Yi Wu 122f35dca5
chore: improve ci workflow (#34) 5 years ago
Bo-Yi Wu fd81fae289 chore: echo sha string 5 years ago
Bo-Yi Wu 242a8e2e57 chore: Add Contexts and expression example 5 years ago
Bo-Yi Wu e5c07fceef
support passphrase (#18)
* support passphrase

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
5 years ago
Bo-Yi Wu f478af9b34 docs: pass multiple environment 5 years ago
Bo-Yi Wu 6f091cd9e3 chore(ssh): remove comma splitting
fix https://github.com/appleboy/ssh-action/issues/10
5 years ago
Bo-Yi Wu 49e81b4a32 docs: add stop script if command error 5 years ago
Bo-Yi Wu 04535147e0 chore: stop script 5 years ago
Bo-Yi Wu 480ff5e05e chore: add FOO envs 5 years ago
Bo-Yi Wu ccece0c886 chore: add envs 5 years ago
Bo-Yi Wu 7e0bb7cd75 chore: add script_stop 5 years ago
Bo-Yi Wu dc9ae8e2e3 chore: add some example 5 years ago
Bo-Yi Wu 54eb169e33 chore: support multiple command 5 years ago
Bo-Yi Wu 1a6f86cece chore: support multiple command 5 years ago
Bo-Yi Wu 917a1df2a4 chore: executing remote ssh commands using ssh key 5 years ago
Bo-Yi Wu 4f7d6491f3 chore: update action image 5 years ago
Bo-Yi Wu 1f7ce4dfab chore: rename job title. 5 years ago
Bo-Yi Wu 215a0580d7 chore: initial github actions 5 years ago
Bo-Yi Wu 5bb5f67611 docs: multiple command 6 years ago
Bo-Yi Wu 77e02d0fad chore: update 6 years ago
Bo-Yi Wu 12a5243afc feat: support private key 6 years ago
Bo-Yi Wu b2e4f0522d update example.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
6 years ago
Bo-Yi Wu a79592f0da Add example
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
6 years ago