Skip to content

Commit

Permalink
chore(deps): Complete Go 1.22 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaut-gauvin authored and renovate[bot] committed Mar 14, 2024
1 parent 190d01b commit 933d01b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Ignore everything ...
*
**/*

# ... but
!cmd/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version
go-version: '1.21'
go-version: '1.22'
check-latest: true
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version
go-version: '1.21'
go-version: '1.22'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version
go-version: '1.21'
go-version: '1.22'
check-latest: true
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: szenius/set-timezone@ce9c440bc3af4f51b28d7ef7e5c47ee8f26c8dcb # v1.2
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM docker.io/golang:1.21.5 as builder
FROM docker.io/golang:1.22.1 as builder
ARG VERSION=devel

WORKDIR /build
COPY . .

RUN CGO_ENABLED=0 go build -ldflags="-w -s -X 'main.version=${VERSION}'" ./cmd/image-registry-metrics-exporter

FROM docker.io/alpine:3.19.0
FROM docker.io/alpine:3.19.1

# renovate: datasource=repology depName=alpine_3_18/ca-certificates versioning=loose
ARG CA_CERTIFICATES_VERSION=20230506-r0

Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ help: ## Display this message
## ----------------------
##

artifact: ## Compile app from sources (linux)
@CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o gobin ./cmd/image-registry-metrics-exporter

artifact.osx: ## Compile app from sources (osx)
@CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o gobin ./cmd/image-registry-metrics-exporter
artifact: ## Generate binary in dist folder
goreleaser build --clean --snapshot --single-target

image-ci: ## Build an image for CI Test Helm
docker build . --tag "ghcr.io/radiofrance/image-registry-metrics-exporter:ci"
Expand Down

0 comments on commit 933d01b

Please sign in to comment.