34 lines
719 B
YAML
34 lines
719 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: example pipeline
|
|
|
|
steps:
|
|
- name: Staging
|
|
image: git.froth.zone/sam/drone-deno-deploy
|
|
environment:
|
|
DENO_DEPLOY_TOKEN:
|
|
from_secret: DENO_DEPLOY_TOKEN
|
|
settings:
|
|
project: drone-deploy
|
|
entrypoint: server/main.ts
|
|
when:
|
|
event:
|
|
- pull_request
|
|
depends_on:
|
|
- "Clone"
|
|
- name: Deploy to Deno Deploy (prod)
|
|
image: git.froth.zone/sam/drone-deno-deploy
|
|
environment:
|
|
DENO_DEPLOY_TOKEN:
|
|
from_secret: DENO_DEPLOY_TOKEN
|
|
settings:
|
|
project: drone-deploy
|
|
entrypoint: server/main.ts
|
|
production: true
|
|
depends_on:
|
|
- "Clone"
|
|
when:
|
|
branch:
|
|
- master
|
|
event:
|
|
- push |