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