更新local-setup-go版本,实现缓存go build依赖包

删除dockerfile赋予权限步骤
This commit is contained in:
soul-walker 2024-03-19 16:27:57 +08:00
parent 9cee828d0d
commit cf6db6ef40
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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" ]