mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2026-03-12 21:02:54 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afa413dc37 | ||
|
|
b7443178f2 | ||
|
|
96257c43a1 | ||
|
|
9433396123 |
@@ -1,6 +1,13 @@
|
||||
# [Unreleased]
|
||||
|
||||
## [v1.1.0] - 2021-10-02
|
||||
|
||||
# Added
|
||||
- [Issue #15](https://github.com/marcodallasanta/ssh-scp-deploy/issues/15) - Added -p {INPUT_PORT} option.
|
||||
|
||||
## [v1.0.5] - 2021-09-08
|
||||
|
||||
### Fixed
|
||||
- [Issue #12](https://github.com/marcodallasanta/ssh-scp-deploy/issues/12) - Action never failed also when file/dir was not uploaded.
|
||||
|
||||
## [v1.0.4] - 2021-02-10
|
||||
@@ -30,6 +37,7 @@
|
||||
|
||||
|
||||
[unreleased]: https://github.com/marcodallasanta/ssh-scp-deploy/compare/main...development
|
||||
[v1.1.0]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.1.0
|
||||
[v1.0.5]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.5
|
||||
[v1.0.4]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.4
|
||||
[v1.0.3]: https://github.com/underscore69/ssh-scp-deploy/tree/v1.0.3
|
||||
|
||||
@@ -54,10 +54,14 @@ Feel free to check [issues page](https://github.com/mdallasanta/ssh-scp-deploy/i
|
||||
|
||||
## 🙏 Thanks
|
||||
|
||||
Thanks to [Raphaël Bussa](https://github.com/raphaelbussa) for help in testing.
|
||||
Thanks to:
|
||||
|
||||
- [Raphaël Bussa](https://github.com/raphaelbussa) for help in testing.
|
||||
- [jamesremuscat](https://github.com/jamesremuscat) for resolving [issue#15](https://github.com/marcodallasanta/ssh-scp-deploy/issues/15)
|
||||
|
||||
|
||||
## 📝 License
|
||||
|
||||
Copyright © 2020 [Marco Dalla Santa](https://github.com/marcoallasanta)
|
||||
Copyright © 2020-2021 [Marco Dalla Santa](https://github.com/marcodallasanta)
|
||||
|
||||
The source code, scripts and documentation in this project are released under the [MIT License](LICENSE)
|
||||
@@ -7,7 +7,7 @@ PRE_UPLOAD=${INPUT_PRE_UPLOAD}
|
||||
if [ ! -z "$PRE_UPLOAD" ]; then
|
||||
{
|
||||
echo "👌 Executing pre-upload script..." &&
|
||||
ssh ${INPUT_SSH_OPTIONS} ${INPUT_USER}@${INPUT_HOST} "$INPUT_PRE_UPLOAD && exit" &&
|
||||
ssh ${INPUT_SSH_OPTIONS} -p "${INPUT_PORT}" ${INPUT_USER}@${INPUT_HOST} "$INPUT_PRE_UPLOAD && exit" &&
|
||||
echo "✅ Executed pre-upload script"
|
||||
} || {
|
||||
echo "😢 Something went wrong during pre-upload script" && exit 1
|
||||
@@ -26,7 +26,7 @@ POST_UPLOAD=${INPUT_POST_UPLOAD}
|
||||
if [ ! -z "$POST_UPLOAD" ]; then
|
||||
{
|
||||
echo "👌 Executing post-upload script..." &&
|
||||
ssh ${INPUT_SSH_OPTIONS} ${INPUT_USER}@${INPUT_HOST} "$POST_UPLOAD && exit" &&
|
||||
ssh ${INPUT_SSH_OPTIONS} -p "${INPUT_PORT}" ${INPUT_USER}@${INPUT_HOST} "$POST_UPLOAD && exit" &&
|
||||
echo "✅ Executed post-upload script"
|
||||
} || {
|
||||
echo "😢 Something went wrong during post-upload script" && exit 1
|
||||
|
||||
@@ -2,7 +2,7 @@ PRE_UPLOAD=${INPUT_PRE_UPLOAD}
|
||||
if [ ! -z "$PRE_UPLOAD" ]; then
|
||||
{
|
||||
echo "👌 Executing pre-upload script..." &&
|
||||
sshpass -p ${PASSWORD} ssh ${INPUT_SSH_OPTIONS} ${INPUT_USER}@${INPUT_HOST} "$INPUT_PRE_UPLOAD && exit" &&
|
||||
sshpass -p ${PASSWORD} ssh ${INPUT_SSH_OPTIONS} -p "${INPUT_PORT}" ${INPUT_USER}@${INPUT_HOST} "$INPUT_PRE_UPLOAD && exit" &&
|
||||
echo "✅ Executed pre-upload script"
|
||||
} || {
|
||||
echo "😢 Something went wrong during pre-upload script" && exit 1
|
||||
@@ -21,7 +21,7 @@ POST_UPLOAD=${INPUT_POST_UPLOAD}
|
||||
if [ ! -z "$POST_UPLOAD" ]; then
|
||||
{
|
||||
echo "👌 Executing post-upload script..." &&
|
||||
sshpass -p ${PASSWORD} ssh ${INPUT_SSH_OPTIONS} ${INPUT_USER}@${INPUT_HOST} "$POST_UPLOAD && exit" &&
|
||||
sshpass -p ${PASSWORD} ssh ${INPUT_SSH_OPTIONS} -p "${INPUT_PORT}" ${INPUT_USER}@${INPUT_HOST} "$POST_UPLOAD && exit" &&
|
||||
echo "✅ Executed post-upload script"
|
||||
} || {
|
||||
echo "😢 Something went wrong during post-upload script" && exit 1
|
||||
|
||||
Reference in New Issue
Block a user