romulus-js/.drone.yml

51 lines
844 B
YAML
Raw Normal View History

2022-01-29 11:43:08 +00:00
kind: pipeline
type: docker
name: build
steps:
2022-01-29 14:53:21 +00:00
- name: install
2022-01-29 11:43:08 +00:00
image: node:lts-alpine
commands:
- npm install
2022-01-29 14:53:21 +00:00
- name: lint
image: node:lts-alpine
commands:
2022-01-29 11:43:08 +00:00
- npm run lint
2022-01-29 14:53:21 +00:00
depends_on:
- install
2022-01-29 11:43:08 +00:00
- name: test
image: node:lts-alpine
commands:
- npm run test
2022-01-29 14:49:32 +00:00
depends_on:
2022-01-29 14:53:21 +00:00
- install
2022-01-29 11:43:08 +00:00
- name: build
image: node:lts-alpine
commands:
2022-01-29 14:49:32 +00:00
- apk add zip
2022-01-29 11:43:08 +00:00
- npm run build
2022-01-29 14:49:32 +00:00
- zip -r romulus-m.zip dist/
depends_on:
2022-01-29 14:53:21 +00:00
- install
2022-01-29 11:43:08 +00:00
- name: publish
image: plugins/gitea-release
depends_on:
2022-01-29 14:49:32 +00:00
- lint
- test
2022-01-29 11:43:08 +00:00
- build
when:
event:
- tag
settings:
base_url: https://git.jacknet.io
api_key:
from_secret: gitea_token
files:
2022-01-29 14:49:32 +00:00
- romulus-m.zip
2022-01-29 11:43:08 +00:00
checksum:
- md5
- sha256