Skip to content

Commit 8bb0e9b

Browse files
crazy-maxmikebrow
authored andcommitted
ci(release): set GO_VERSION in Dockerfile
Signed-off-by: CrazyMax <[email protected]> (cherry picked from commit 0eac0ee) Signed-off-by: Austin Vazquez <[email protected]>
1 parent 08ea6d1 commit 8bb0e9b

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212

1313
name: Release
1414

15-
env:
16-
GO_VERSION: "1.24.9"
17-
1815
permissions: # added using https://github.com/step-security/secure-workflows
1916
contents: read
2017

@@ -118,7 +115,7 @@ jobs:
118115
export PREFIX_LEN=12
119116
BUILD_ARGS="--build-arg GATEWAY --build-arg PREFIX_LEN"
120117
fi
121-
docker buildx build ${cache} --build-arg RELEASE_VER --build-arg UBUNTU_VERSION=${{ matrix.dockerfile-ubuntu }} --build-arg GO_VERSION ${BUILD_ARGS} -f .github/workflows/release/Dockerfile --platform=${PLATFORM} -o releases/ .
118+
docker buildx build ${cache} --build-arg RELEASE_VER --build-arg UBUNTU_VERSION=${{ matrix.dockerfile-ubuntu }} ${BUILD_ARGS} -f .github/workflows/release/Dockerfile --platform=${PLATFORM} -o releases/ .
122119
echo PLATFORM_CLEAN=${PLATFORM/\//-} >> $GITHUB_ENV
123120
124121
# Remove symlinks since we don't want these in the release Artifacts (if any)

.github/workflows/release/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
ARG UBUNTU_VERSION=22.04
1616
ARG BASE_IMAGE=ubuntu:${UBUNTU_VERSION}
17-
ARG GO_VERSION
17+
ARG GO_VERSION=1.24.9
1818
ARG GO_IMAGE=golang:${GO_VERSION}
1919
FROM --platform=$BUILDPLATFORM $GO_IMAGE AS go
2020
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.6.1@sha256:923441d7c25f1e2eb5789f82d987693c47b8ed987c4ab3b075d6ed2b5d6779a3 AS xx

0 commit comments

Comments
 (0)