pipeline test
This commit is contained in:
parent
abe2e0f09a
commit
731e243cb8
2 changed files with 41 additions and 0 deletions
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# .woodpecker.yml
|
||||||
|
platform: linux/arm64
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: node:18-alpine
|
||||||
|
commands:
|
||||||
|
- apk add git zip tar
|
||||||
|
- npm install
|
||||||
|
- npm install git+https://jusax.de/git/jusax23/gitea-release.git
|
||||||
|
- npm run prepublish
|
||||||
|
- npm run build-linux-arm64
|
||||||
|
publish:
|
||||||
|
image: node:18-alpine
|
||||||
|
commands:
|
||||||
|
- mkdir build
|
||||||
|
- mkdir outbag_server
|
||||||
|
- mkdir outbag_server/dist
|
||||||
|
- mkdir upload
|
||||||
|
- cp dist/* outbag_server/dist
|
||||||
|
- cp package.json outbag_server
|
||||||
|
- cp package-lock.json outbag_server
|
||||||
|
- cp readme.md outbag_server
|
||||||
|
- zip -r upload/OutbagServer.zip outbag_server/*
|
||||||
|
- tar -czvf upload/OutbagServer.tar.gz outbag_server/*
|
||||||
|
- cp build/bin/* upload
|
||||||
|
- npx gitea-release "${{api_url}}" "$${GITEA_TOKEN}" "$${CI_REPO}" "$${CI_COMMIT_BRANCH}" "$${CI_COMMIT_TAG}" "upload" "$${CI_COMMIT_MESSAGE}"
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
secrets: [ gitea_token ]
|
11
package.json
11
package.json
|
@ -3,8 +3,19 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "Did you know that you can host your own outbag instance?",
|
"description": "Did you know that you can host your own outbag instance?",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
|
"bin": "dist/main.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"directories": {
|
||||||
|
"dist": "dist"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist/*"
|
||||||
|
],
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 16"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepublish": "tsc",
|
||||||
"main": "tsc && node . -c config.juml",
|
"main": "tsc && node . -c config.juml",
|
||||||
"debug": "tsc && node . -c config.juml -d",
|
"debug": "tsc && node . -c config.juml -d",
|
||||||
"setup": "tsc && node . -c config.juml -s",
|
"setup": "tsc && node . -c config.juml -s",
|
||||||
|
|
Loading…
Reference in a new issue