diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2364869..581b585 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 - name: Run Tests run: go test ./... @@ -35,7 +35,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 - name: Run Goreleaser if: ${{ github.event_name != 'pull_request' }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 828a83f..e968a42 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,8 +15,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21 + go-version: 1.22 - name: Lint uses: golangci/golangci-lint-action@v4.0.0 with: - version: v1.54.2 \ No newline at end of file + version: v1.56.2 diff --git a/Dockerfile b/Dockerfile index 62650be..76037ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /app # Requirements/Dependencies @@ -14,4 +14,4 @@ COPY --from=builder app/prometheus-libvirt-exporter usr/bin/prometheus-libvirt-e # Default listen on port 9177 EXPOSE 9177 # Start -CMD ["usr/bin/prometheus-libvirt-exporter"] \ No newline at end of file +CMD ["usr/bin/prometheus-libvirt-exporter"] diff --git a/go.mod b/go.mod index 4915327..70a3279 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/inovex/prometheus-libvirt-exporter -go 1.21 +go 1.22 require ( github.com/alecthomas/kingpin/v2 v2.4.0