*Add CI and packaging

This commit is contained in:
Derrick Hammer 2022-09-28 20:39:15 -04:00
parent 9157d43544
commit eb8a24682e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 55 additions and 0 deletions

34
.woodpecker.yml Normal file
View File

@ -0,0 +1,34 @@
pipeline:
build:
image: git.lumeweb.com/lumeweb/ci-node
commands:
- yarn
- yarn build
package:
image: ghcr.io/goreleaser/nfpm
commands:
- nfpm pkg --packager deb
publish_focal:
image: git.lumeweb.com/lumeweb/aptly-publisher
settings:
apt_username:
from_secret: apt_username
apt_password:
from_secret: apt_password
repo: apt.web3relay.io
folder: ubuntu
distro: focal
gpg_password:
from_secret: gpg_password
publish_jammy:
image: git.lumeweb.com/lumeweb/aptly-publisher
settings:
apt_username:
from_secret: apt_username
apt_password:
from_secret: apt_password
repo: apt.web3relay.io
folder: ubuntu
distro: jammy
gpg_password:
from_secret: gpg_password

3
core.json Normal file
View File

@ -0,0 +1,3 @@
{
"plugins": ["core"]
}

18
nfpm.yaml Normal file
View File

@ -0,0 +1,18 @@
name: "lumeweb-relay-plugin-core"
arch: "amd64"
platform: "linux"
version: "v0.1.0"
section: "default"
priority: "extra"
maintainer: "Derrick Hammer contact@lumeweb.com"
description: Core Plugin for Lume Web Relay
vendor: "Hammer Technologies LLC"
homepage: "https://lumeweb.com"
license: "MIT"
contents:
- src: ./dist/core.js
dst: /etc/lumeweb/relay/plugins/core.js
- src: ./core.json
dst: /etc/lumeweb/relay/config.d/core.json
depends:
- lumeweb-relay