Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert e044d3d6f4
build / build (push) Has been cancelled
add redis exporter
2023-07-18 18:30:33 +02:00

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}}'