Skip to content

Commit adc1ef8

Browse files
feat(apps): deploy flow (#66)
* feat(apps): rework deploy flow and version bunny.jsonc * bunny apps deploy changeset * formatting * tidt dividers * limit skillscheck * refactor config for schema * Create bunfig.toml * progress * feat(apps): resolve env values from .env via pointer references * Bunny Database * updates to app deploy link and manifest
1 parent 4d34f44 commit adc1ef8

63 files changed

Lines changed: 5978 additions & 419 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/swift-ideas-grin.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@bunny.net/app-config": minor
3+
"@bunny.net/cli": minor
4+
---
5+
6+
Rework bunny apps deploy command

.github/workflows/skillscheck.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@ concurrency:
1010
on:
1111
push:
1212
branches: [main]
13+
paths:
14+
- "skills/**"
15+
- ".github/workflows/skillscheck.yml"
1316
pull_request:
1417
branches: [main]
18+
paths:
19+
- "skills/**"
20+
- ".github/workflows/skillscheck.yml"
1521

1622
jobs:
1723
skillscheck:

AGENTS.md

Lines changed: 61 additions & 24 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ bun ny <command>
4141
# Examples
4242
bun ny login
4343
bun ny db list
44-
bun ny apps deploy
44+
bun ny apps deploy ghcr.io/me/api:v1.2 # deploy a pre-built image
45+
bun ny apps deploy --dockerfile # build ./Dockerfile and deploy
46+
bun ny apps deploy # first run? Imports docker-compose.yml if present, otherwise walks through Dockerfile or pre-built image setup.
47+
bun ny apps link # interactive: pick from existing apps on the account
48+
bun ny apps link <app-id> # link a specific app to this directory (writes .bunny/app.json)
49+
bun ny apps unlink # remove .bunny/app.json
4550
```
4651

4752
### Available Scripts

bun.lock

Lines changed: 14 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bunfig.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[install]
2+
# Only install package versions published at least 3 days ago
3+
minimumReleaseAge = 259200

packages/app-config/generated/schema.json

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"$schema": {
66
"type": "string"
77
},
8+
"version": {
9+
"type": "string",
10+
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
11+
},
812
"app": {
913
"type": "object",
1014
"properties": {
@@ -28,22 +32,32 @@
2832
"additionalProperties": false
2933
},
3034
"regions": {
31-
"type": "object",
32-
"properties": {
33-
"allowed": {
35+
"anyOf": [
36+
{
3437
"type": "array",
3538
"items": {
3639
"type": "string"
3740
}
3841
},
39-
"required": {
40-
"type": "array",
41-
"items": {
42-
"type": "string"
43-
}
42+
{
43+
"type": "object",
44+
"properties": {
45+
"allowed": {
46+
"type": "array",
47+
"items": {
48+
"type": "string"
49+
}
50+
},
51+
"required": {
52+
"type": "array",
53+
"items": {
54+
"type": "string"
55+
}
56+
}
57+
},
58+
"additionalProperties": false
4459
}
45-
},
46-
"additionalProperties": false
60+
]
4761
},
4862
"containers": {
4963
"type": "object",
@@ -59,6 +73,9 @@
5973
"dockerfile": {
6074
"type": "string"
6175
},
76+
"context": {
77+
"type": "string"
78+
},
6279
"command": {
6380
"type": "array",
6481
"items": {
@@ -195,6 +212,6 @@
195212
"additionalProperties": false
196213
}
197214
},
198-
"required": ["app"],
215+
"required": ["version", "app"],
199216
"additionalProperties": false
200217
}

0 commit comments

Comments
 (0)