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 }}