4 Commits

Author SHA1 Message Date
Marco.DallaSanta
afa413dc37 fixed link to my github profile 2021-10-02 01:18:20 +02:00
Marco.DallaSanta
b7443178f2 Added ssh port option for pre-post scp. 2021-10-02 01:14:14 +02:00
Marco Dalla Santa
96257c43a1 Merge pull request #16 from jamesremuscat/main
resolves #15
2021-10-02 01:05:33 +02:00
James Muscat
9433396123 Honour INPUT_PORT in pre- and post-upload hooks. 2021-10-01 21:56:25 +01:00
4 changed files with 18 additions and 6 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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

View File

@@ -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