1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-30 05:34:01 +00:00

Deploy images to kostersitz.com.

To manage deploy secrets in GitHub, go to the repository page, click
Settings, then Environments, then Deploy, then scroll down to
Environment secrets.
This commit is contained in:
Lars Brinkhoff
2023-03-04 10:19:34 +01:00
parent 6638dbebfd
commit db199cb313
3 changed files with 33 additions and 1 deletions

30
build/deploy-ftp.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/sh
set -e
HOST="hactrn.kostersitz.com"
USER="hactrn@kostersitz.com"
DIR="images"
NETRC="$HOME/.netrc"
if test -z "$FTP_SECRET"; then
echo 'ERROR: No password in $FTP_SECRET.'
exit 1
fi
echo "machine $HOST" > "$NETRC"
echo "login $USER" >> "$NETRC"
echo "password $FTP_SECRET" >> "$NETRC"
chmod 600 "$NETRC"
echo "Deploying to $USER@$HOST"
ftp "$HOST" <<EOF
type image
cd $DIR
lcd out
put $EMULATOR.tgz
bye
EOF
exit 0