Skip to content

Commit b104bb7

Browse files
authored
docs: update CONTRIBUTING.md with PR deployments instructions (#8831)
* docs: Update CONTRIBUTING.md with PR deployments instructions * update
1 parent dcc63ae commit b104bb7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/CONTRIBUTING.md

+18
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,24 @@ Use the following `make` commands and scripts in development:
7979
- Access `http://localhost:8080`
8080
- The default user is `admin@coder.com` and the default password is `SomeSecurePassword!`
8181

82+
### Deploying a PR
83+
84+
You can test your changes by creating a PR deployment. A PR deployment can be triggered in two ways:
85+
86+
1. By commenting on the PR with `/deploy-pr`
87+
2. By running `./scripts/deploy-pr.sh`
88+
3. Available options
89+
- `-s` or `--skip-build`, the image will not be built again, and the last image will be used.
90+
- `-e EXPERIMENT1,EXPERIMENT2` or `--experiments EXPERIMENT1,EXPERIMENT2`, will enable the specified experiments.
91+
- `-n` or `--dry-run` will display the context without deployment. e.g., branch name and PR number, etc.
92+
- `-y` or `--yes`, will skip the CLI confirmation (only valid for the `./scripts/deploy-pr.sh`)
93+
94+
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR.
95+
96+
> You need to be a member or collaborator of the of [coder](github.com/coder) GitHub organization to be able to deploy a PR.
97+
98+
Once the deployment is finished, a unique link and credentials will be posted in the [#pr-deployments](https://codercom.slack.com/archives/C05DNE982E8) Slack channel.
99+
82100
### Adding database migrations and fixtures
83101

84102
#### Database migrations

0 commit comments

Comments
 (0)