feat(ci)!: Switch to woodpecker

This commit is contained in:
2023-11-06 20:36:28 +01:00
parent 42d6fa1bb8
commit 387002b261
2 changed files with 40 additions and 62 deletions

40
.woodpecker/release.yml Normal file
View File

@@ -0,0 +1,40 @@
steps:
- name: run build
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands:
- apk add git zip -f
- npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
- pnpm i
- pnpm build
- mkdir out
- zip -r out/dist.zip dist
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
- name: gitea add packages to build
image: woodpeckerci/plugin-gitea-release
settings:
api_key:
from_secret: odit-git-bot-apikey
base_url: https://git.odit.services
files: out/*
title: Release ${DRONE_TAG}
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
- name: trigger electron build
image: woodpeckerci/plugin-trigger
settings:
repositories:
- lfk/scanclient-electron
params:
- "SOURCE_TAG=${DRONE_TAG}"
token:
from_secret: odit-ci-bot-apikey
when:
event: tag