mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2024-11-19 08:08:05 +08:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1b29e52589 | ||
|
18abe921d8 | ||
|
85f4a96743 | ||
|
c59d8e4eeb | ||
|
5c0c73092e | ||
|
51a00631e2 | ||
|
4a7a6fbdf2 | ||
|
fe4bee416c | ||
|
18600dc04b | ||
|
2cd8a820e2 |
1
.github/workflows/e2e.yml
vendored
1
.github/workflows/e2e.yml
vendored
@@ -57,6 +57,7 @@ jobs:
|
|||||||
- name: e2e Test published ssh-deploy action
|
- name: e2e Test published ssh-deploy action
|
||||||
uses: easingthemes/ssh-deploy@main
|
uses: easingthemes/ssh-deploy@main
|
||||||
env:
|
env:
|
||||||
|
# ENV Vars created in previous steps:
|
||||||
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
|
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
|
||||||
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST
|
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST
|
||||||
REMOTE_USER: ${{ env.TEST_USER }}
|
REMOTE_USER: ${{ env.TEST_USER }}
|
||||||
|
@@ -67,6 +67,11 @@ Execution is preformed by storing commands in `.sh` file and executing it via `.
|
|||||||
Script to run on host machine after rsync.
|
Script to run on host machine after rsync.
|
||||||
Rsync output is stored in `$RSYNC_STDOUT` env variable.
|
Rsync output is stored in `$RSYNC_STDOUT` env variable.
|
||||||
|
|
||||||
|
##### 11. `SSH_CMD_ARGS` (optional, default '-o StrictHostKeyChecking=no')
|
||||||
|
|
||||||
|
A list of ssh arguments, they must be prefixed with -o and separated by a comma, for example: -o SomeArgument=no, -o SomeOtherArgument=5
|
||||||
|
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
Use the latest version from Marketplace,eg: ssh-deploy@v2
|
Use the latest version from Marketplace,eg: ssh-deploy@v2
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,3 +1,39 @@
|
|||||||
|
## [3.3.1](https://github.com/easingthemes/ssh-deploy/compare/v3.3.0...v3.3.1) (2023-01-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Log rsync command ([85f4a96](https://github.com/easingthemes/ssh-deploy/commit/85f4a967435d7d44edf2fea628c9f59db5e890ee))
|
||||||
|
|
||||||
|
# [3.3.0](https://github.com/easingthemes/ssh-deploy/compare/v3.2.0...v3.3.0) (2023-01-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add SSH_CMD_ARGS support ([51a0063](https://github.com/easingthemes/ssh-deploy/commit/51a00631e2b91983fb610ca2157a673b9ae03c95))
|
||||||
|
|
||||||
|
# [3.2.0](https://github.com/easingthemes/ssh-deploy/pull/94/files) (2023-01-02)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add SSH remote script support - before and after rsync ([2cd8a82](https://github.com/easingthemes/ssh-deploy/pull/94/files))
|
||||||
|
* feat: add sshCmdArgs option
|
||||||
|
* feat: add onStderr and onStdout logs
|
||||||
|
* feat: Add RSYNC_STDOUT env variable
|
||||||
|
* feat: Update emojis
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* fix: remove _unsafe _dirname
|
||||||
|
* fix: Add promise instead of callback
|
||||||
|
* fix: improve logs
|
||||||
|
* fix: Add simple command exists instead of a plugin
|
||||||
|
* fix: add non interactive install
|
||||||
|
* fix: Improve reject messages
|
||||||
|
* fix: update workflow actions
|
||||||
|
|
||||||
|
|
||||||
## [3.1.1](https://github.com/easingthemes/ssh-deploy/compare/v3.1.0...v3.1.1) (2023-01-02)
|
## [3.1.1](https://github.com/easingthemes/ssh-deploy/compare/v3.1.0...v3.1.1) (2023-01-02)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@draganfilipovic/ssh-deploy",
|
"name": "@draganfilipovic/ssh-deploy",
|
||||||
"version": "3.1.1",
|
"version": "3.3.1",
|
||||||
"description": "Fast NodeJS action to deploy specific directory from `GITHUB_WORKSPACE` to a server via rsync over ssh.",
|
"description": "Fast NodeJS action to deploy specific directory from `GITHUB_WORKSPACE` to a server via rsync over ssh.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"files": [
|
"files": [
|
||||||
|
@@ -14,6 +14,7 @@ const nodeRsyncPromise = async (config) => new Promise((resolve, reject) => {
|
|||||||
console.error('❌ [Rsync] cmd: ', cmd);
|
console.error('❌ [Rsync] cmd: ', cmd);
|
||||||
reject(new Error(`${error.message}\n\n${stderr}`));
|
reject(new Error(`${error.message}\n\n${stderr}`));
|
||||||
} else {
|
} else {
|
||||||
|
console.log('[Rsync] cmd finished: ', cmd);
|
||||||
resolve(stdout);
|
resolve(stdout);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user