web/.drone.yml
Tyler 8aa3d78d6d
All checks were successful
continuous-integration/drone/push Build is passing
Fix cpu status
2019-12-29 18:51:03 -05:00

44 lines
976 B
YAML

kind: pipeline
name: default
type: docker
steps:
- name: build
image: node:latest
volumes:
- name: build
path: /build
commands:
- echo "v1.2.1" > /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`
- chmod +x packaging/build-package.sh
- 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: {}