https://github.com/nextauthjs/github-workers
Certain providers block cloud IPs, so we need self-hosted workers to circumvent this for running tests in GitHub Actions
https://github.com/nextauthjs/github-workers
Last synced: about 1 year ago
JSON representation
Certain providers block cloud IPs, so we need self-hosted workers to circumvent this for running tests in GitHub Actions
- Host: GitHub
- URL: https://github.com/nextauthjs/github-workers
- Owner: nextauthjs
- Created: 2021-02-09T23:20:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-26T07:32:55.000Z (about 4 years ago)
- Last Synced: 2025-04-12T08:58:40.229Z (about 1 year ago)
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NextAuth.js GitHub Actions workers 👷
## Prerequisities
1. Get Personal Access Token (PAT) with "repo" and "workflow" scope: https://github.com/settings/tokens
2. Create .env.local
3. add `ACCESS_TOKEN=PASTE_PAT_HERE`
## Build image
```sh
docker build --tag runner .
```
## Run container
### Single
#### Run
```sh
docker run \
--detach \
--env-file ".env.local" \
--name runner \
runner
```
#### Stop
```sh
docker stop runner
docker rm runner
```
### Swarm
#### Build Docker Compose
```sh
docker-compose build
```
#### Start 3 runners
```sh
docker-compose up --scale runner=3 -d
```
#### Stop
```sh
docker-compose down runner
```
# Thanks / More info
https://testdriven.io/blog/github-actions-docker/