forked from prometheus-community/postgres_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.01 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ build ]
workflow_dispatch:
inputs:
branch:
description: 'Branch you want to build'
required: true
default: 'build'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
strategy:
matrix:
docker: ['scratch','ubi']
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: ${{ matrix.docker }}
steps:
- name: build
uses: sysdiglabs/exporter-builder@v1.1
with:
exporter: postgresql-exporter
artifactory_token: ${{ secrets.GAR_DEV_RW_JSON_KEY }}
artifactory_username: _json_key
sysdig_secure_token: ${{ secrets.SYSDIG_SECURE_TOKEN }}
tag_name: dev
target: ${{ matrix.docker }}
repository: us-docker.pkg.dev