Skip to content

Commit 43b4729

Browse files
committed
Update Go version handling in Dockerfiles and systems configuration for consistency
1 parent b423937 commit 43b4729

File tree

6 files changed

+26
-21
lines changed

6 files changed

+26
-21
lines changed

config/systems.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
"golang": {
6969
"base_images": {
7070
"x64": {
71-
"1.22": "golang:1.22",
72-
"1.23": "golang:1.23",
73-
"1.24": "golang:1.24"
71+
"1.22.0": "golang:1.22",
72+
"1.23.0": "golang:1.23",
73+
"1.24.0": "golang:1.24"
7474
}
7575
},
7676
"images": [
@@ -222,9 +222,9 @@
222222
"golang": {
223223
"base_images": {
224224
"x64": {
225-
"1.22": "mcr.microsoft.com/devcontainers/go:1.4-1.22",
226-
"1.23": "mcr.microsoft.com/devcontainers/go:1.4-1.23",
227-
"1.24": "mcr.microsoft.com/devcontainers/go:1.4-1.24"
225+
"1.22.0": "mcr.microsoft.com/devcontainers/go:1.4-1.22",
226+
"1.23.0": "mcr.microsoft.com/devcontainers/go:1.4-1.23",
227+
"1.24.0": "mcr.microsoft.com/devcontainers/go:1.4-1.24"
228228
}
229229
},
230230
"images": [
@@ -311,9 +311,9 @@
311311
"golang": {
312312
"base_images": {
313313
"x64": {
314-
"1.22": "ubuntu:22.04",
315-
"1.23": "ubuntu:22.04",
316-
"1.24": "ubuntu:22.04"
314+
"1.22.0": "ubuntu:22.04",
315+
"1.23.0": "ubuntu:22.04",
316+
"1.24.0": "ubuntu:22.04"
317317
}
318318
},
319319
"images": [
@@ -397,9 +397,9 @@
397397
"golang": {
398398
"base_images": {
399399
"x64": {
400-
"1.21": "openwhisk/action-golang-v1.21",
401-
"1.22": "openwhisk/action-golang-v1.22",
402-
"1.23": "openwhisk/action-golang-v1.23"
400+
"1.21.0": "openwhisk/action-golang-v1.21",
401+
"1.22.0": "openwhisk/action-golang-v1.22",
402+
"1.23.0": "openwhisk/action-golang-v1.23"
403403
}
404404
},
405405
"images": [

dockerfiles/aws/golang/Dockerfile.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

4-
# Define Go version as build argument with default
5-
ARG GO_VERSION=1.23.0
4+
# Define Go version from VERSION build argument
5+
ARG VERSION
6+
ENV GO_VERSION=${VERSION}
67
ARG TARGETARCH=amd64
78

89
#######################################

dockerfiles/azure/golang/Dockerfile.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

4-
# Define Go version as build argument with default
5-
ARG GO_VERSION=1.23.0
4+
# Define Go version from VERSION build argument
5+
ARG VERSION
6+
ENV GO_VERSION=${VERSION}
67
ARG TARGETARCH=amd64
78

89
# Install dependencies

dockerfiles/gcp/golang/Dockerfile.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

4-
# Define Go version as build argument with default
5-
ARG GO_VERSION=1.23.0
4+
# Define Go version from VERSION build argument
5+
ARG VERSION
6+
ENV GO_VERSION=${VERSION}
67
ARG TARGETARCH=amd64
78

89
# Install dependencies

dockerfiles/local/golang/Dockerfile.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

44
# Define Go version as build argument with default
5-
ARG GO_VERSION=1.23.0
5+
ARG VERSION
6+
ENV GO_VERSION=${VERSION}
67
ARG TARGETARCH=amd64
78

89
# Install dependencies

dockerfiles/openwhisk/golang/Dockerfile.build

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
ARG BASE_IMAGE
22
FROM ${BASE_IMAGE}
33

4-
# Define Go version as build argument with default
5-
ARG GO_VERSION=1.23.0
4+
# Define Go version from VERSION build argument
5+
ARG VERSION
6+
ENV GO_VERSION=${VERSION}
67
ARG TARGETARCH=amd64
78

89
# Install dependencies

0 commit comments

Comments
 (0)