Add drone.yml
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
020415ad41
commit
77db9f85cf
2 changed files with 49 additions and 35 deletions
49
.drone.yml
Normal file
49
.drone.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
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
|
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
|
@ -1,35 +0,0 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: deploy
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Deno
|
||||
uses: denoland/setup-deno@main
|
||||
with:
|
||||
deno-version: 1.22.1
|
||||
|
||||
- name: Build site
|
||||
run: deno run -A https://deno.land/x/lume/ci.ts
|
||||
|
||||
- name: Deploy to Deno Deploy
|
||||
uses: denoland/deployctl@v1
|
||||
with:
|
||||
project: lume-example
|
||||
entrypoint: server/main.ts
|
Loading…
Reference in a new issue