scanclient-electron/.drone.yml

91 lines
1.9 KiB
YAML
Raw Normal View History

2021-03-19 18:08:37 +00:00
---
kind: secret
name: gitea_token
get:
path: odit-git-bot
name: apikey
2021-04-07 16:24:58 +00:00
---
kind: secret
name: git_ssh
get:
path: odit-git-bot
name: sshkey
2021-03-19 18:08:37 +00:00
---
kind: pipeline
type: kubernetes
2021-04-07 16:16:34 +00:00
name: build:tag
2021-03-19 18:08:37 +00:00
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
2021-03-19 19:08:06 +00:00
- zip -r dist/@lfk-scanclient-electron-linux-x64.zip out/@lfk-scanclient-electron-linux-x64
2021-03-19 18:08:37 +00:00
- name: gitea_release
depends_on: ["run electron packager"]
image: plugins/gitea-release
settings:
2021-04-07 17:15:57 +00:00
title: Release ${DRONE_TAG}
2021-03-19 18:08:37 +00:00
api_key:
from_secret: gitea_token
base_url: https://git.odit.services
files: dist/*
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
2021-04-07 16:16:50 +00:00
trigger:
event:
- tag
---
kind: pipeline
type: kubernetes
name: prepare:tag
steps:
- name: bump package version
2021-04-07 16:16:50 +00:00
image: node:alpine
commands:
- npm --no-git-tag-version version ${SOURCE_TAG}
2021-04-13 16:51:21 +00:00
- name: push new version to repo
image: appleboy/drone-git-push
settings:
commit: true
commit_message: 🚀New package version ${SOURCE_TAG} [CI SKIP]
author_email: bot@odit.services
followtags: false
remote: git@git.odit.services:lfk/scanclient-electron.git
skip_verify: true
ssh_key:
from_secret: git_ssh
- name: tag
2021-04-07 16:16:50 +00:00
image: alpine/git
commands:
2021-04-07 17:12:15 +00:00
- git tag ${SOURCE_TAG} -a -m "Release ${SOURCE_TAG}"
- name: push to repo
image: appleboy/drone-git-push
settings:
commit: false
author_email: bot@odit.services
followtags: true
remote: git@git.odit.services:lfk/scanclient-electron.git
skip_verify: true
ssh_key:
from_secret: git_ssh
trigger:
2021-03-19 18:08:37 +00:00
event:
2021-04-07 16:16:50 +00:00
exclude:
- push
2021-04-07 17:15:40 +00:00
- tag
2021-04-07 16:16:50 +00:00
include:
- custom