Skip to content

Commit caaaa66

Browse files
Allow dependabot to keep your golang version current
cleanup
1 parent 6a7151d commit caaaa66

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ updates:
3131
- patch
3232
schedule:
3333
interval: weekly
34+
35+
- package-ecosystem: "docker"
36+
directories:
37+
- "/"
38+
schedule:
39+
interval: "daily"

.github/workflows/build_pr.yml

-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ jobs:
2323
run: |
2424
docker buildx build \
2525
--platform linux/arm64/v8,linux/amd64,linux/arm,linux/ppc64le,linux/s390x \
26-
--build-arg GO_VERSION=$(grep -m 1 go go.mod | cut -d\ -f2) \
2726
-t ghcr.io/jimmidyson/configmap-reload:${{ github.event.pull_request.head.sha }} \
2827
.

.github/workflows/build_tag_and_main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
run: |
3636
docker buildx build \
3737
--platform linux/arm64/v8,linux/amd64,linux/arm,linux/ppc64le,linux/s390x \
38-
--build-arg GO_VERSION=$(grep -m 1 go go.mod | cut -d\ -f2) \
3938
-t ghcr.io/jimmidyson/configmap-reload:${{ github.ref_name == 'main' && 'dev' || github.ref_name }} \
4039
--push \
4140
.

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
ARG BASEIMAGE=gcr.io/distroless/static-debian11:nonroot
44

5-
ARG GO_VERSION
6-
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} as builder
5+
FROM --platform=${BUILDPLATFORM} golang:1.24.1@sha256:af0bb3052d6700e1bc70a37bca483dc8d76994fd16ae441ad72390eea6016d03 as builder
76

87
ENV GOTOOLCHAIN=auto
98

0 commit comments

Comments
 (0)