This repository has been archived on 2025-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
scanclient-electron/.drone.yml
Philipp Dormann 5b770c1c4a
All checks were successful
continuous-integration/drone/tag Build is passing
CI fix for linux build output file
2021-03-19 20:08:06 +01:00

43 lines
807 B
YAML

---
kind: secret
name: gitea_token
get:
path: odit-git-bot
name: apikey
---
kind: pipeline
type: kubernetes
name: build
steps:
- name: run electron packager
depends_on: ["clone"]
image: node:15.11.0-alpine3.13
commands:
- apk add git zip -f
- yarn
- yarn build
- mkdir dist
- zip -r dist/@lfk-scanclient-electron-linux-x64.zip out/@lfk-scanclient-electron-linux-x64
- name: gitea_release
depends_on: ["run electron packager"]
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.odit.services
files: dist/*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event: tag
trigger:
event:
- tag