Skip to content

Commit 69955d8

Browse files
authored
Merge pull request #6 from code4rena-dev/docs/ci-config
docs: update ci config
2 parents f65df76 + 0aed5f8 commit 69955d8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,29 @@
55
> npm pkg set skeleton.module=@code4rena/skeleton
66
> npx code-skeleton apply
77
```
8+
9+
## Configuration & Usage
10+
11+
### CI
12+
In your projects `package.json` you can set custom CI variables to extend the default workflow. The following configuration will add a Postgres service to the test job, as well as inject the `DOTENV_KEY` environment variables for dotenv vault usage.
13+
14+
```
15+
"skeleton": {
16+
"variables": {
17+
"ci": {
18+
"postgres": true,
19+
"env_vault": true
20+
}
21+
}
22+
},
23+
```
24+
25+
#### Postgres Container
26+
When enabled, you will need to set the following repository variables in your github repos action variables (`{repo}/settings/variables/actions`):
27+
* POSTGRES_DB
28+
* POSTGRES_PASSWORD
29+
* POSTGRES_PORT
30+
* POSTGRES_USER
31+
32+
#### Dotenv Vault
33+
When enabled, in addition to a commited .env.vault file, you will need to set the `DOTENV_KEY` environment secret for the desired .env file from your .env.keys file. Set this as a repository secret at `{repo}/settings/secrets/actions` on github.

0 commit comments

Comments
 (0)