yarn install
yarn serve
yarn build
yarn lint
Get access to a ssh shell and get the public ip for the server.
sudo adduser --disabled-password github-actions
Create ssh key for the github-actions
user
ssh-keygen -t rsa -b 4096 -f id
# copy the public key to ~/.ssh/authorized_keys of the remote github-actions user
cat id.pub
Login via ssh to the new github-actions
user.
ssh -i id github-actions@<ip>
Environment variable | value |
---|---|
SSH_KNOWN_HOSTS |
ssh-keyscan <ip> |
SSH_PRIVATE_KEY |
cat id |
SSH_HOST |
github-actions@<ip> |