web/.drone.yml

43 lines
932 B
YAML

kind: pipeline
name: default
type: docker
steps:
- name: build
image: node:latest
volumes:
- name: build
path: /build
commands:
- echo "v1.2.0" > /build/version.txt
- npm install
- npm run build
- cp -R dist /build/dist
- name: package
image: tystuyfzand/fpm
volumes:
- name: build
path: /build
commands:
- export VERSION=`cat /build/version.txt`
- packaging/build-package.sh
- cd /build/dist && tar zcvf /build/arm-web.tgz .
- rm -rf /build/dist
- name: release
image: tystuyfzand/drone-gitea-release
volumes:
- name: build
path: /build
settings:
gitea_server: https://git.meow.tf
tag_file: /build/version.txt
title_file: /build/version.txt
files: [ '/build/*' ]
environment:
PLUGIN_API_KEY:
from_secret: gitea_token
volumes:
- name: build
temp: {}