feat: support windows build

This commit is contained in:
Bo-Yi Wu 2019-03-16 11:47:53 +08:00
parent 74f1e6573c
commit 45eefea636
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ build_script:
$version = $env:APPVEYOR_REPO_TAG_NAME $version = $env:APPVEYOR_REPO_TAG_NAME
$buildDate = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP $buildDate = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP
} }
go build -ldflags "-X github.com/go-ggz/ggz/version.Version=$version -X github.com/go-ggz/ggz/version.BuildDate=$buildDate" -a -o release/ggz-server.exe . go build -a -o release/gorush.exe .
docker pull microsoft/nanoserver:10.0.14393.1884 docker pull microsoft/nanoserver:10.0.14393.1884
docker build -f docker/Dockerfile.windows.amd64 -t appleboy/gorush:windows-amd64 . docker build -f docker/Dockerfile.windows.amd64 -t appleboy/gorush:windows-amd64 .