From cf6db6ef40efb09309d7a2ab9ec993c966ae82cf Mon Sep 17 00:00:00 2001 From: soul-walker Date: Tue, 19 Mar 2024 16:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0local-setup-go=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=AE=9E=E7=8E=B0=E7=BC=93=E5=AD=98go=20buil?= =?UTF-8?q?d=E4=BE=9D=E8=B5=96=E5=8C=85=20=E5=88=A0=E9=99=A4dockerfile?= =?UTF-8?q?=E8=B5=8B=E4=BA=88=E6=9D=83=E9=99=90=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/CI_local_test.yaml | 3 ++- Dockerfile_Gitea | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/CI_local_test.yaml b/.gitea/workflows/CI_local_test.yaml index d91ed01..788ed4e 100644 --- a/.gitea/workflows/CI_local_test.yaml +++ b/.gitea/workflows/CI_local_test.yaml @@ -14,13 +14,14 @@ jobs: with: submodules: recursive - name: 设置go环境 - uses: https://gitea.joylink.club/actions/local-setup-go@v0.1.1 + uses: https://gitea.joylink.club/actions/local-setup-go@v0.1.2 with: go-version: '1.22.1' - name: 构建go build run: | go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct + go env -w CGO_ENABLED=0 go build -o rts-sim-testing-service - name: 设置 Docker uses: https://gitea.joylink.club/actions/local-setup-docker-cli-action@v0.1.1 diff --git a/Dockerfile_Gitea b/Dockerfile_Gitea index 56bdc71..978eb87 100644 --- a/Dockerfile_Gitea +++ b/Dockerfile_Gitea @@ -1,6 +1,5 @@ FROM alpine COPY ./rts-sim-testing-service /usr/local/bin/rts-sim-testing-service -RUN chmod +x /usr/local/bin/rts-sim-testing-service WORKDIR /bj-rtsts COPY ./config/*.yml ./ CMD [ "rts-sim-testing-service" ] \ No newline at end of file