deno-deploy-example/.drone.yml
Sam Therapy 77db9f85cf
Add drone.yml
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-10 22:09:45 +02:00

49 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: example pipeline
steps:
- name: Build site
image: denoland/deno:alpine
commands:
- deno run -A https://deno.land/x/lume/ci.ts
- 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: Comment on PR
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: http://git.froth.zone
comment_title: "Deno Deploy URL"
comment_from_file: "./url"
depends_on:
- "Staging"
when:
event:
- pull_request
- 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
when:
branch:
- master
event:
- push