diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0f2635f --- /dev/null +++ b/.github/workflows/main.yml @@ -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/checkout@v3.5.2 + - 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 \ No newline at end of file diff --git a/Makefile b/Makefile index a977bb8..c9965be 100644 --- a/Makefile +++ b/Makefile @@ -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= oxycoder@gmail.com +PLUGIN_DEVEL= .include "../../Mk/plugins.mk" diff --git a/pkg-descr b/pkg-descr index 05e0d2e..c23485e 100644 --- a/pkg-descr +++ b/pkg-descr @@ -1 +1,6 @@ -Provide support for Grafana, Loki and Promtail \ No newline at end of file +Provide support for Grafana, Loki and Promtail + +Plugin Changelog +================ + +1.0 Initial release \ No newline at end of file