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

33 lines
714 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_exporter
api_key: '${{secrets.RELEASE_TOKEN}}'
working-directory: varnish