Skip to content

Commit

Permalink
add ci builder
Browse files Browse the repository at this point in the history
  • Loading branch information
oxycoder committed May 30, 2023
1 parent c91e0d6 commit 3e90841
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:
tags:
- 'v*'

jobs:
test:
runs-on: macos-12
name: Build plugins
permissions:
contents: write
steps:
- name: Checkout
uses: actions/[email protected]
- name: FreeBSD VM
id: build
uses: vmactions/freebsd-vm@v0
with:
release: 13.1
usesh: true
sync: sshfs
prepare: |
pkg install -y git
pkg install -y python
pkg install -y php82
pkg install -y rsync
envs: 'PLUGIN_DEVEL=false'
run: |
git clone https://github.com/opnsense/plugins /usr/plugins
rsync -av --exclude '.git' ./ /usr/plugins/net/opn-monitor/
cd /usr/plugins/net/opn-monitor/
make package
cd -
cp /usr/plugins/net/opn-monitor/work/pkg/* ./
- uses: ncipollo/release-action@v1
with:
artifacts: "*.pkg"
generateReleaseNotes: true
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
PLUGIN_NAME= opn-monitor
PLUGIN_VERSION= 1.0
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Grafana loki stack
PLUGIN_REVISION= 0
PLUGIN_COMMENT= Grafana loki promtail stack
PLUGIN_MAINTAINER= [email protected]
PLUGIN_DEVEL=

.include "../../Mk/plugins.mk"
7 changes: 6 additions & 1 deletion pkg-descr
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Provide support for Grafana, Loki and Promtail
Provide support for Grafana, Loki and Promtail

Plugin Changelog
================

1.0 Initial release

0 comments on commit 3e90841

Please sign in to comment.