h.hackclub.app/website-deploy-action.sh

10 lines
233 B
Bash
Raw Normal View History

2024-04-07 00:56:50 +00:00
#!/bin/bash
2024-04-07 01:00:11 +00:00
# Assuming that this is a Debian container.
apt-get update && \
apt-get upgrade -y && \
apt install -y openssh && \
mkdir .ssh && \
echo $DEPLOY_SSH_KEY > .ssh/id_ed25519 && \
chmod -R go-rwx .ssh && \
ssh h@hackclub.app