mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2026-03-12 21:02:54 +08:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
839788b727 | ||
|
|
5a27574133 | ||
|
|
5473b2d02c | ||
|
|
7d6ed29410 | ||
|
|
d744479d59 | ||
|
|
b4eb8f8a33 | ||
|
|
3393f06782 | ||
|
|
0cdc30a56f | ||
|
|
e3f5136f75 | ||
|
|
5b2be75e1a | ||
|
|
0cb5842c53 |
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -12,9 +12,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- uses: underscore69/ssh-scp-deploy@main
|
||||
- uses: marcodallasanta/ssh-scp-deploy@main
|
||||
with:
|
||||
local: "./"
|
||||
local: "CHANGELOG.md"
|
||||
remote: "~/"
|
||||
host: ${{secrets.HOST}}
|
||||
user: ${{secrets.USER}}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
# [Unreleased]
|
||||
|
||||
|
||||
## [v1.0.2] - 2020-12-21
|
||||
|
||||
### Fixed
|
||||
- Dockerfile used to copy just entrypoint.sh.
|
||||
|
||||
## [v1.0.1] - 2020-12-21
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -7,7 +7,6 @@ RUN apk update && \
|
||||
bash
|
||||
|
||||
COPY LICENSE README.md /
|
||||
|
||||
COPY *.sh ./
|
||||
COPY entrypoint.sh with_key.sh with_pass.sh /
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
#!/bin/bash
|
||||
PASSWORD=${INPUT_PASSWORD}
|
||||
KEY=${INPUT_KEY}
|
||||
if [ -z "$PRE_UPLOAD" and "$PASSWORD"]; then
|
||||
|
||||
PASSWORD=${INPUT_PASSWORD};
|
||||
KEY=${INPUT_KEY};
|
||||
|
||||
if [ -z "$PRE_UPLOAD" ] && [ "$PASSWORD" ]; then
|
||||
echo "🔑 Please provide at least a key or a password...";
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if [[ ! -z "$KEY" ]]; then
|
||||
if [[ -n "$KEY" ]]; then
|
||||
echo "🔑 Using key file...";
|
||||
. with_key.sh;
|
||||
source /with_key.sh;
|
||||
else
|
||||
echo "🔑 Using password...";
|
||||
. with_pass.sh;
|
||||
source /with_pass.sh;
|
||||
fi
|
||||
Reference in New Issue
Block a user