Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vfshera/dep
Your CPANEL Deployment Tool
https://github.com/vfshera/dep
Last synced: 5 days ago
JSON representation
Your CPANEL Deployment Tool
- Host: GitHub
- URL: https://github.com/vfshera/dep
- Owner: vfshera
- License: mit
- Created: 2024-04-08T12:44:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T22:49:45.000Z (6 months ago)
- Last Synced: 2024-07-10T06:28:26.550Z (6 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dep
Designed to simplify the process of deploying CPANEL sites.
## How It Works
Dep searches for a `.dep` directory in the root of your project. Within this directory, it looks for a `deploy.yaml` or `deploy.yml` file, which must match the following Zod schema:
```ts
const runJobSchema = z.object({
name: z.string(),
run: z.string(),
});export const workflowSchema = z.object({
name: z.string(),
jobs: z.record(
z.string(),
z.union([
runJobSchema,
z.object({
name: z.string(),
steps: z.array(runJobSchema),
}),
]),
),
});
```## Example Configuration
Your `deploy.yaml` or `deploy.yml` file should look something like this:
```yaml
name: Astro Blog
jobs:
pull:
name: Pull Latest Changes
run: git pull
install:
name: Install Dependencies
run: pnpm install
build:
name: Build Project
run: pnpm run build
```## Environment Variable Support
Load variables into scripts by declaring a .env.dep file. The output will NOT be redacted in logs and ui if the env key starts with `PUBLIC_`
```yaml
name: Demo
jobs:
list:
name: Echo
run: echo $S3_BUCKET
```