Skip to content

Commit 43bd378

Browse files
chore: sync types to workflow v0.6.0
1 parent aab5959 commit 43bd378

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gocodealone/workflow-editor",
3-
"version": "0.5.5",
3+
"version": "0.6.0",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.js",

src/generated/dsl-reference.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,37 @@
260260
"Sidecars are deployed alongside the application container but are not addressable as workflow modules",
261261
"`infrastructure` resources are provisioned by IaC plugins before application start"
262262
]
263+
},
264+
{
265+
"id": "ci",
266+
"title": "CI",
267+
"description": "The optional `ci:` section declares the CI/CD lifecycle: what to build, how to test, and where to deploy.",
268+
"requiredFields": null,
269+
"optionalFields": null,
270+
"example": "ci:\n build:\n binaries:\n - name: server\n path: ./cmd/server\n os: [linux]\n arch: [amd64, arm64]\n ldflags: \"-X main.version=${VERSION}\"\n containers:\n - name: my-app\n registry: ghcr.io/myorg\n tag: \"${VERSION}\"\n test:\n unit:\n command: go test ./... -race -count=1\n coverage: true\n integration:\n command: go test ./... -tags=integration\n needs: [postgres, redis]\n deploy:\n environments:\n staging:\n provider: k8s\n namespace: staging\n strategy: rolling\n production:\n provider: k8s\n namespace: production\n strategy: blue-green\n requireApproval: true\n healthCheck:\n path: /healthz\n timeout: 60s",
271+
"relationships": null
272+
},
273+
{
274+
"id": "environments",
275+
"title": "Environments",
276+
"description": "The optional `environments:` section declares named deployment environments with provider, region, env vars, and exposure config.",
277+
"requiredFields": null,
278+
"optionalFields": null,
279+
"example": "environments:\n local:\n provider: docker\n envVars:\n LOG_LEVEL: debug\n DATABASE_URL: postgres://localhost/dev\n exposure:\n method: port-forward\n portForward:\n \"8080\": \"8080\"\n\n staging:\n provider: k8s\n region: us-east-1\n secretsProvider: env\n secretsPrefix: STAGING_\n exposure:\n method: tailscale\n tailscale:\n funnel: true\n hostname: my-app-staging\n\n production:\n provider: k8s\n region: us-east-1\n approvalRequired: true\n secretsProvider: env\n exposure:\n method: cloudflare-tunnel\n cloudflareTunnel:\n tunnelName: my-app-prod\n domain: api.myapp.com",
280+
"relationships": null
281+
},
282+
{
283+
"id": "secrets",
284+
"title": "Secrets",
285+
"description": "The optional `secrets:` section declares the application's secret management configuration: which provider to use, rotation policy, and what secrets the application needs.",
286+
"requiredFields": null,
287+
"optionalFields": null,
288+
"example": "secrets:\n provider: env\n rotation:\n enabled: true\n interval: 30d\n strategy: dual-credential\n entries:\n - name: DATABASE_URL\n description: PostgreSQL connection string\n - name: JWT_SECRET\n description: JWT signing key\n rotation:\n enabled: true\n interval: 7d\n strategy: graceful\n - name: STRIPE_SECRET_KEY\n description: Stripe payment API key",
289+
"relationships": [
290+
"`environments[*].secretsProvider` overrides the top-level provider per environment",
291+
"`environments[*].secretsPrefix` is prepended to secret names when resolving in that environment",
292+
"`ci.deploy.environments` can reference secrets from the `secrets:` section"
293+
]
263294
}
264295
]
265296
}

0 commit comments

Comments
 (0)