@@ -15,7 +15,7 @@ jobs:
|
||||
- name: 编译 Go 项目
|
||||
run: |
|
||||
go mod tidy
|
||||
go build -o myapp .
|
||||
CGO_ENABLED=0 go build -o myapp .
|
||||
|
||||
- name: 运行测试
|
||||
run: |
|
||||
@@ -54,6 +54,6 @@ jobs:
|
||||
EXPOSE 8080 8888 8889 8688 10000
|
||||
|
||||
# CMD ["/app/server", "-f", "/app/etc/config.yaml"]
|
||||
CMD ["/app/server", "-f", "/app/etc/config.yaml"]
|
||||
CMD ["/app/server"]
|
||||
EOF
|
||||
docker build -t myapp:${{ gitea.sha }} .
|
||||
docker build -t myapp:${{ gitea.run_id }} .
|
||||
|
||||
Reference in New Issue
Block a user