Compare commits
	
		
			10 commits
		
	
	
		
			ce4e15eeed
			...
			926e545dd2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 926e545dd2 | |||
| 4c6523a9a7 | |||
| c725b33679 | |||
| 70649e4f5e | |||
| 01b4b69706 | |||
| 490066a292 | |||
| a5280f73f1 | |||
| 2627de72ca | |||
| da6f08c9d0 | |||
| bdde6a5413 | 
					 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 {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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue