Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add infra cache count metric #69

add infra cache count metric

add infra cache count metric #69

Workflow file for this run

name: Build and release
on:
# Runs automatically when a tag beginning with 'v' (i.e. a versioned release) is pushed.
push:
tags:
- v*
branches: [main]
pull_request:
branches: [main]
jobs:
build-release:
runs-on: ubuntu-20.04
permissions:
contents: read
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: build binary
run: go build
- name: install nfpm
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.15.1
- name: build deb
run: nfpm package -p deb -t unbound_exporter.deb
- name: upload deb
uses: actions/upload-artifact@v3
with:
name: unbound_exporter deb artifact
path: unbound_exporter.deb
push-release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: build-release
runs-on: ubuntu-20.04
# Overrides the org default of 'read'. This allows us to upload and post the
# resulting package file as part of a release.
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Download release artifact
uses: actions/download-artifact@v3
with:
name: unbound_exporter deb artifact
- name: rename
run: mv unbound_exporter.deb unbound_exporter-${GITHUB_REF_NAME}.x86_64.deb
- name: push release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://cli.github.com/manual/gh_release_create
run: gh release create "${GITHUB_REF_NAME}" unbound_exporter-${GITHUB_REF_NAME}.x86_64.deb
Morty Proxy This is a proxified and sanitized view of the page, visit original site.