Sam Therapy
aec6acbcca
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
53 lines
No EOL
1.1 KiB
YAML
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 |