Merge pull request 'Add drone CI' (#5) from drone into princess
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
This commit is contained in:
commit
926e545dd2
3 changed files with 34 additions and 2 deletions
32
.drone.yml
Normal file
32
.drone.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:current-alpine3.12
|
||||||
|
commands:
|
||||||
|
- npm install -D
|
||||||
|
- npm run rebuild
|
||||||
|
|
||||||
|
- name: package
|
||||||
|
image: fuww/alpine-zip
|
||||||
|
commands:
|
||||||
|
- SHORTREV=`echo $DRONE_COMMIT | cut -b 1-8`
|
||||||
|
- echo FILENAME=`date +%Y%m%d%H%m`-$SHORTREV.zip >> environment
|
||||||
|
- source environment
|
||||||
|
- zip -r $FILENAME build
|
||||||
|
|
||||||
|
- name: b2
|
||||||
|
image: tianon/backblaze-b2:2
|
||||||
|
environment:
|
||||||
|
BUCKET: carbon-artifacts
|
||||||
|
ACCOUNT:
|
||||||
|
from_secret: b2_account_id
|
||||||
|
KEY:
|
||||||
|
from_secret: b2_application_key
|
||||||
|
commands:
|
||||||
|
- source environment
|
||||||
|
- b2 authorize-account $ACCOUNT $KEY
|
||||||
|
- b2 upload-file $BUCKET $FILENAME $FILENAME
|
||||||
|
- echo Build artifacts avaliable at `b2 make-friendly-url $BUCKET $FILENAME`
|
|
@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js"
|
||||||
import * as lsm from "./lsm.js"
|
import * as lsm from "./lsm.js"
|
||||||
import {resolveMxc} from "./functions.js"
|
import {resolveMxc} from "./functions.js"
|
||||||
|
|
||||||
const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", second: "numeric", day: "numeric", month: "short", year: "numeric"})
|
const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", day: "numeric", month: "short", year: "numeric"})
|
||||||
|
|
||||||
let sentIndex = 0
|
let sentIndex = 0
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js"
|
||||||
import * as lsm from "./lsm.js"
|
import * as lsm from "./lsm.js"
|
||||||
import {resolveMxc} from "./functions.js"
|
import {resolveMxc} from "./functions.js"
|
||||||
|
|
||||||
const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", second: "numeric", day: "numeric", month: "short", year: "numeric"})
|
const dateFormatter = Intl.DateTimeFormat("default", {hour: "numeric", minute: "numeric", day: "numeric", month: "short", year: "numeric"})
|
||||||
|
|
||||||
let sentIndex = 0
|
let sentIndex = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue