test
Pure Run Build / build (push) Successful in 31s

This commit is contained in:
2026-07-23 17:35:04 +08:00
parent a6edf4213a
commit 1aa951d2eb
+3 -3
View File
@@ -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 }} .