Skip to content

Commit

Permalink
Use wrangler.toml.example file in the repo instead of `wrangler.tom…
Browse files Browse the repository at this point in the history
…l` (#40)

* provide an example wrangler.toml to keep the repo easy to update

* update the readme file
  • Loading branch information
zaherg authored Jul 22, 2024
1 parent f3b3ba6 commit 13c4e88
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
cache: 'pnpm'

- run: pnpm install --frozen-lockfile --child-concurrency=10
- run: cp wrangler.toml.example wrangler.toml
- run: pnpm run typecheck
- run: pnpm test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.wrangler
*.env
node_modules
*.vars
*.vars
wrangler.toml
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ $ pnpm install

After installation, there is a few steps to actually deploy the registry into production:

1. Setup the R2 Bucket for this registry
1. Have your own `wrangler` file.

```bash
$ cp wrangler.toml.example wrangler.toml
```

2. Setup the R2 Bucket for this registry

```bash
$ npx wrangler --env production r2 bucket create r2-registry
Expand All @@ -29,7 +35,7 @@ r2_buckets = [
]
```

2. Deploy your image registry
3. Deploy your image registry

```bash
$ npx wrangler deploy --env production
Expand Down
File renamed without changes.

0 comments on commit 13c4e88

Please sign in to comment.