prisma/Deploy to Prisma Compute
Build and deploy applications to Prisma Compute using the CLI
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api-token | Prisma API service token (workspace-scoped, stored as a GitHub secret) | yes | — |
| compute-service-id | Target compute service ID to deploy to | yes | — |
| app-path | Path to the application directory | no | . |
| entrypoint | Application entrypoint file (auto-detected from package.json if omitted) | no | — |
| env-vars | Runtime environment variables as newline-separated KEY=VALUE pairs | no | — |
| api-url | Management API base URL override | no | — |
| timeout | Seconds to wait for the version to reach running status | no | 120 |
| build-type | Build strategy: auto (default), bun, or nextjs | no | auto |
| artifact-path | Path to pre-built application output directory (enables skip-build mode; requires entrypoint) | no | — |
| bun-install | Control Bun setup and dependency installation. 'auto' (default): Sets up Bun only if not already on PATH. Installs dependencies when node_modules is missing. Skips install when artifact-path is set. 'true': Always sets up Bun and installs dependencies. 'false': Skips both Bun setup and dependency installation. | no | auto |
| github-deployment | Control GitHub Deployment tracking. 'auto' (default): Creates a GitHub Deployment and updates its status on completion. Silently skips if the token lacks 'deployments: write' permission. 'true': Same as auto but fails the workflow if the deployment status cannot be reported. 'false': Disables GitHub Deployment tracking entirely. | no | auto |
| environment | GitHub environment name for deployment tracking (e.g. 'production', 'staging', 'preview'). When empty (default), auto-detects based on branch: main/master → 'production', others → 'preview'. | no | "" |
| skip-promote | Deploy the new version without promoting it to the service endpoint | no | false |
| destroy-old-version | Delete the old version after stopping it | no | false |
| github-token | GitHub token for creating deployment statuses. Defaults to the automatic GITHUB_TOKEN. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| version-id | The created compute version ID (e.g. cpv_...) |
| version-endpoint-domain | The version-specific endpoint domain |
| service-endpoint-domain | The stable service endpoint domain |
| deployment-id | The GitHub Deployment ID (empty if tracking was skipped or unavailable) |