mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-25 14:45:59 +03:00
15 lines
390 B
Bash
Executable file
15 lines
390 B
Bash
Executable file
#!/bin/bash
|
|
|
|
pattern="tachiyomi-r*"
|
|
files=( $pattern )
|
|
export ARTIFACT="${files[0]}"
|
|
|
|
if [ -z "$ARTIFACT" ]; then
|
|
echo "Artifact not found"
|
|
exit 1
|
|
fi
|
|
|
|
export SSHOPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ${DEPLOY_KEY}"
|
|
|
|
scp $SSHOPTIONS $ARTIFACT $DEPLOY_USER@$DEPLOY_HOST:builds/
|
|
ssh $SSHOPTIONS $DEPLOY_USER@$DEPLOY_HOST ln -sf $ARTIFACT builds/latest
|