Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert a87a2f7e85
build / build (push) Failing after 30s
new test
2023-07-18 15:52:54 +02:00

32 lines
681 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://git.rznet.fr/tchivert/release-action@v1
with:
files: |-
varnish_exporter
api_key: '${{secrets.RELEASE_TOKEN}}'