Files
prometheus_exporters/.gitea/workflows/build.yml
2023-07-18 15:31:54 +02:00

30 lines
653 B
YAML

name: build
on:
push:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
run: git clone https://github.com/jonnenauha/prometheus_varnish_exporter varnish
- name: Setup go
uses: https://github.com/actions/setup-go@v4
- 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_exporter
api_key: '${{secrets.RELEASE_TOKEN}}'