mirror of
https://gitee.com/jiulinxiri/ssh-scp-deploy.git
synced 2025-09-11 02:32:31 +08:00
Initial commit
This commit is contained in:
15
entrypoint.sh
Executable file
15
entrypoint.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
PASSWORD=${INPUT_PASSWORD}
|
||||
KEY=${INPUT_KEY}
|
||||
if [ -z "$PRE_UPLOAD" and "$PASSWORD"]; then
|
||||
echo "🔑 Please provide at least a key or a password...";
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if [[ ! -z "$KEY" ]]; then
|
||||
echo "🔑 Using key file...";
|
||||
. with_key.sh;
|
||||
else
|
||||
echo "🔑 Using password...";
|
||||
. with_pass.sh;
|
||||
fi
|
Reference in New Issue
Block a user