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:
30
build/deploy-ftp.sh
Normal file
30
build/deploy-ftp.sh
Normal 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
|
||||
Reference in New Issue
Block a user