From d942a17b9df9b94d294d1ec67b5f8a9554103f9b Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 17 Jan 2025 17:32:06 +0000 Subject: [PATCH] . --- .github/workflows/docker.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 20b49aa..cb7eb62 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -44,6 +44,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@0f069ddc17b8eb78586b08a7fe335fd54649e2d3 + - name: Get go version + run: echo "GO_VERSION=$(go mod edit -json | jq -r .Go)" >> $GITHUB_ENV + - name: Build and push Docker image uses: docker/build-push-action@v6 with: @@ -53,4 +56,4 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - GO_VERSION=$(go mod edit -json | jq -r .Go) + GO_VERSION=${{ env.GO_VERSION }}