deno-deploy-example/.drone.yml
Sam Therapy aec6acbcca
Some checks failed
continuous-integration/drone/push Build is failing
Fix mistakes
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-10-10 22:18:54 +02:00

53 lines
No EOL
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
depends_on:
- "Build site"
- name: Comment on PR
image: tsakidev/giteacomment:latest
settings:
gitea_token:
from_secret: gitea_token
gitea_base_url: https://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
depends_on:
- "Build site"
when:
branch:
- master
event:
- push