Files
ssh-scp-deploy/entrypoint.sh
Marco Dalla Santa ca82210d43 Initial commit
2020-12-18 17:22:26 +01:00

15 lines
324 B
Bash
Executable File

#!/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