From 7cc85ffbcbb7ea49858978554595ff13b6d8f972 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Tue, 23 Apr 2024 21:14:38 +0300 Subject: [PATCH] Add README for deploy --- README | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..15ab899 --- /dev/null +++ b/README @@ -0,0 +1,31 @@ +# This is better-ripe initiative website + +## Deployment runbook + +### 1. Install dependencies on remote host + +TODO + +### 2. Generate new ssh key on your machine + +```bash +ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-deploy -N "" +``` + +### 3. Add new ssh key to your GitHub account + +* Next, Go to Repository Settings +* * Go to Deploy Keys and add your public key with the Allow write access +* * Go to Secrets and add your private key as ACTIONS_DEPLOY_KEY + +### 4. Add new ssh key to your remote host + +```bash +ssh-copy-id -i gh-deploy.pub deploy@remotehost +``` + +### 5. Add remote host to your repository variables + +* Go to Repository Settings +* Go to Secrets and add your remote host as ACTIONS_DEPLOY_HOST +