h.hackclub.app/website-deploy-action.sh
9pfs 5912ade62a
Some checks failed
Deploy website to nest / deploy (push) Failing after 2s
One problem fixed, another one created! Yay.
2024-04-06 18:22:30 -07:00

11 lines
396 B
Bash
Executable file

#!/bin/bash
# Assuming that this is a Debian container.
# apt-get update && \
# apt-get upgrade -y && \
# Apparently ssh is installed, lol
# apt install -y openssh-client && \
mkdir ~/.ssh && \
echo $DEPLOY_SSH_KEY > ~/.ssh/id_ed25519 && \
cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \
chmod -R go-rwx ~/.ssh && \
ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app