From 3208da347e4f7d38aa5d9e3def45c4b032dd0b86 Mon Sep 17 00:00:00 2001 From: Jaime Pillora Date: Sun, 29 Sep 2024 09:32:04 +1000 Subject: [PATCH] fix chisel version in docker image (closes #228) --- .github/Dockerfile | 2 +- .github/workflows/ci.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/Dockerfile b/.github/Dockerfile index 8d2f8ccf..872f7e00 100644 --- a/.github/Dockerfile +++ b/.github/Dockerfile @@ -3,7 +3,7 @@ FROM golang:alpine AS build RUN apk update && apk add git ADD . /src WORKDIR /src -ENV CGO_ENABLED 0 +ENV CGO_ENABLED=0 RUN go build \ -ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(git describe --abbrev=0 --tags)" \ -o /tmp/bin diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f2dcdfa..e7fcdf8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: # optionally test/build across multiple platforms/Go-versions - go-version: ['1.22'] # '1.16', '1.17', '1.18, + go-version: ["1.22"] # '1.16', '1.17', '1.18, platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -80,10 +80,11 @@ jobs: - name: Build and push uses: docker/build-push-action@v3 with: + context: . file: .github/Dockerfile platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/386,linux/arm/v7,linux/arm/v6 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha - cache-to: type=gha,mode=max \ No newline at end of file + cache-to: type=gha,mode=max