Files
prometheus_exporters/.gitea/workflows/build.yml
tchivert 1b277b78ca
build / build (push) Successful in 3m4s
change phpfpm exporter source
2023-09-29 14:45:22 +02:00

97 lines
3.6 KiB
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/oliver006/redis_exporter redis
- name: Checkout nginx exporter
run: git clone https://github.com/nginxinc/nginx-prometheus-exporter nginx
- name: Checkout opcache exporter
run: git clone https://github.com/floodcode/opcache-exporter opcache
- name: Checkout apache exporter
run: git clone https://github.com/Lusitaniae/apache_exporter apache
- name: Checkout blackbox exporter
run: git clone https://github.com/prometheus/blackbox_exporter blackbox
- name: Checkout memcached exporter
run: git clone https://github.com/prometheus/memcached_exporter memcached
- name: Checkout mongodb exporter
run: git clone https://github.com/percona/mongodb_exporter mongodb
- name: Checkout mysqld exporter
run: git clone https://github.com/prometheus/mysqld_exporter mysqld
- name: Checkout node exporter
run: git clone https://github.com/prometheus/node_exporter node
- name: Checkout phpfpm exporter
run: git clone https://github.com/Lusitaniae/phpfpm_exporter phpfpm
- name: Checkout postgres exporter
run: git clone https://github.com/prometheus-community/postgres_exporter postgres
- name: Build varnish exporter
run: go build -o ../bin/varnish_exporter
working-directory: varnish
continue-on-error: true
- name: Build redis exporter
run: go build -o ../bin/redis_exporter
working-directory: redis
continue-on-error: true
- name: Build nginx exporter
run: go build -o ../bin/nginx_exporter
working-directory: nginx
continue-on-error: true
- name: Build opcache exporter
run: go build -o ../bin/opcache_exporter ./cmd/exporter
working-directory: opcache
continue-on-error: true
- name: Build apache exporter
run: go build -o ../bin/apache_exporter
working-directory: apache
continue-on-error: true
- name: Build blackbox exporter
run: go build -o ../bin/blackbox_exporter
working-directory: blackbox
continue-on-error: true
- name: Build memcached exporter
run: go build -o ../bin/memcached_exporter ./cmd/memcached_exporter
working-directory: memcached
continue-on-error: true
- name: Build mongodb exporter
run: go build -o ../bin/mongodb_exporter
working-directory: mongodb
continue-on-error: true
- name: Build mysqld exporter
run: go build -o ../bin/mysqld_exporter
working-directory: mysqld
continue-on-error: true
- name: Build node exporter
run: go build -o ../bin/node_exporter
working-directory: node
continue-on-error: true
- name: Build phpfpm exporter
run: go build -o ../bin/phpfpm_exporter
working-directory: phpfpm
continue-on-error: true
- name: Build postgres exporter
run: go build -o ../bin/postgres_exporter ./cmd/postgres_exporter
working-directory: postgres
continue-on-error: true
- name: Create release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
api_key: '${{secrets.RELEASE_TOKEN}}'