Skip to content

Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 #975

Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0

Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 #975

Workflow file for this run

name: go build
on:
push:
paths-ignore:
- 'docs/**'
- 'README.md'
branches:
- main
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
branches:
- main
jobs:
go-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.19', '1.20', '1.21']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: build binary
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o go-dnscollector *.go
go-macos:
runs-on: macos-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: build binary
run: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o go-dnscollector *.go
go-win:
runs-on: windows-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: build binary
run: |
set CGO_ENABLED=0
go build -o go-dnscollector.exe .
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker build --build-arg VERSION=dev . --file Dockerfile -t go-dnscollector