You've already forked prometheus_exporters
30 lines
621 B
YAML
30 lines
621 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: git clone https://github.com/jonnenauha/prometheus_varnish_exporter varnish
|
|
|
|
- name: Setup go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '>=1.20'
|
|
|
|
- name: Build
|
|
run: go build -o varnish_exporter
|
|
working-directory: varnish
|
|
|
|
- name: Create release
|
|
uses: https://gitea.com/actions/release-action@main
|
|
with:
|
|
files: |-
|
|
varnish/varnish_exporter
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|