From 9f545e189ebee91331b5a97cb8be90713082b3da Mon Sep 17 00:00:00 2001 From: Xinwei Date: Fri, 6 Nov 2026 14:19:32 +1100 Subject: [PATCH] fix: pass Go version build arg in release workflow Read GO_VERSION from .go-version to prevent an empty Docker base image tag. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f18ffc5..13d9f2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" + run: docker build . --file Dockerfile --build-arg GO_VERSION="$(cat .go-version)" --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - name: Push image