Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert f0eb2333fe
build / build (push) Failing after 28s
created a tag
2023-07-18 15:59:27 +02:00

32 lines
687 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: 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}}'