service/static_shim: add deployment environment step authored by Jérôme Charaoui's avatar Jérôme Charaoui
......@@ -57,13 +57,18 @@ file looks like this (`build` stage elided for simplicity):
project: tpo/tpa/ci-templates
file: static-shim-deploy.yml
Then you also need to set an SSH key in the project. First, generate a
First, create the `production` deployment environment. Navigate to the
project's Settings -> Deployments -> Environments and click `New
environment`. Enter `production` in the `Name` field and the
production URL in `External URL` (eg. `https://status.torproject.org`)
Next, you need to set an SSH key in the project. First, generate a
password-less key locally:
ssh-keygen -f id_rsa -P "" -C "static-shim deploy key"
Then in the project's Settings -> CI/CD -> Variables, pick `Add
variable`, with the following parameters:
Then in Settings -> CI/CD -> Variables, pick `Add variable`, with the
following parameters:
* Key: `STATIC_GITLAB_SHIM_SSH_PRIVATE_KEY`
* Value: the content of the `id_rsa` file, above (yes, it's the
......
......