Skip to content

Commit

Permalink
Remove github deploy runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ronardcaktus committed Oct 1, 2024
1 parent ba22e93 commit a78bf0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- develop
- CU-8689pdzrr-k8s-self-hosted-runner

jobs:
build-push:
Expand Down
35 changes: 1 addition & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,37 +293,4 @@ To reset your local database from a deployed environment:

As mentioned in the Database setup instructions, you may need to visit
[/cms/sites](http://localhost:8000/cms/sites/) and change the first entry's
`Hostname` field to `localhost` to enable page previews in the Wagtail admin.

### GitHub Actions Runner

There are [GitHub Actions self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners) deployed on a virtual machine within the same VPC. Other runners may be added in the future, if needed.

Setup instructions:

* Obtain a [GitHub PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with the `admin:org` scope that's valid for one week (it needs to be active only for the initial deployment). Add this to a local environment variable `RUNNER_CFG_PAT`:

```sh
export RUNNER_CFG_PAT="gh......"
```

* Run the playbook to deploy the runner:

```sh
cd deploy/
# first time: connect as ubuntu user
ansible-playbook -u ubuntu deploy-runner.yml
# second time and beyond
ansible-playbook deploy-runner.yml
```

* The runner can be forcibly reinstalled by passing `-e force_reinstall=yes` or removed by passing `-e force_removal=yes`.

Run OS updates:

```sh
cd deploy/
ansible-playbook run-os-updates.yml
# You may need to specify your username
ansible-playbook -u myusername run-os-updates.yaml
```
`Hostname` field to `localhost` to enable page previews in the Wagtail admin.

0 comments on commit a78bf0b

Please sign in to comment.