Compare commits

...

10 commits

Author SHA1 Message Date
bad
926e545dd2 Merge pull request 'Add drone CI' (#5) from drone into princess
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2020-10-20 09:49:55 +00:00
bad
4c6523a9a7 Merge branch 'princess' into drone
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-10-20 09:44:01 +00:00
Bad
c725b33679 Update drone.yml to use a separate zip container
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-10-20 11:30:08 +02:00
Bad
70649e4f5e Revert "Fix artifact uploads(hopefully)"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 01b4b69706.
2020-10-20 10:47:14 +02:00
Bad
01b4b69706 Fix artifact uploads(hopefully)
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-20 10:46:35 +02:00
Bad
490066a292 Upload drone artifacts
Some checks failed
continuous-integration/drone/push Build is failing
2020-10-20 10:39:10 +02:00
Bad
a5280f73f1 Switch to alpine-node instead of node container
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-19 16:54:42 +02:00
Bad
2627de72ca Fix drone I think idk really
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-19 16:17:29 +02:00
da6f08c9d0
Drop seconds from message dates
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-10-20 02:25:57 +13:00
bdde6a5413
Drone (1)
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-10-20 02:16:38 +13:00
3 changed files with 34 additions and 2 deletions

32
.drone.yml Normal file
View 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`

View file

@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js"
import * as lsm from "./lsm.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

View file

@ -5,7 +5,7 @@ import {Anchor} from "./Anchor.js"
import * as lsm from "./lsm.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