-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To manage deploy secrets in GitHub, go to the repository page, click Settings, then Environments, then Deploy, then scroll down to Environment secrets.
- Loading branch information
1 parent
6638dbe
commit db199cb
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
HOST="hactrn.kostersitz.com" | ||
USER="[email protected]" | ||
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 |