deno-deploy-example/.drone.yml

31 lines
657 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
- name: Deploy to Deno Deploy (prod)
image: ghcr.io/samtherapy/deno-deploy:latest
environment:
DENO_DEPLOY_TOKEN:
from_secret: DENO_DEPLOY_TOKEN
settings:
project: drone-deploy
entrypoint: server/main.ts
production: true
when:
branch:
- master
event:
- push