Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#409) #976
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |