Initial commit

This commit is contained in:
Marco Dalla Santa
2020-12-18 17:22:26 +01:00
commit ca82210d43
9 changed files with 216 additions and 0 deletions

15
entrypoint.sh Executable file
View 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