11 Commits

Author SHA1 Message Date
Marco Dalla Santa
839788b727 Merge pull request #6 from marcodallasanta/development
Fixed entrypoint.sh
2020-12-21 22:54:59 +01:00
Marco Dalla Santa
5a27574133 Changed entry . 2020-12-21 22:48:14 +01:00
Marco Dalla Santa
5473b2d02c Changed CHANGELOG.md . 2020-12-21 22:27:03 +01:00
Marco Dalla Santa
7d6ed29410 Changed CHANGELOG.md . 2020-12-21 22:09:43 +01:00
Marco Dalla Santa
d744479d59 Changed entrypoiny.sh . 2020-12-21 22:06:57 +01:00
Marco Dalla Santa
b4eb8f8a33 Changed entrypoiny.sh . 2020-12-21 22:05:47 +01:00
Marco Dalla Santa
3393f06782 Changed main and entrypoint. 2020-12-21 22:00:05 +01:00
Marco Dalla Santa
0cdc30a56f Changed Dockerfile. 2020-12-21 21:53:04 +01:00
Marco Dalla Santa
e3f5136f75 Changed Dockerfile. 2020-12-21 21:44:32 +01:00
Marco Dalla Santa
5b2be75e1a Changed Dockerfile. 2020-12-21 21:39:35 +01:00
Marco Dalla Santa
0cb5842c53 Updated CHANGELOG. Changed Dockerfile. 2020-12-21 21:10:08 +01:00
4 changed files with 16 additions and 10 deletions

View File

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

View File

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

View File

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

View File

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