update .appveyor.yml
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
f22326b26a
commit
5d287eff2c
@ -1,7 +1,9 @@
|
|||||||
version: '{build}'
|
version: '{build}'
|
||||||
image: 'Visual Studio 2017'
|
image: 'Visual Studio 2017'
|
||||||
|
platform: x64
|
||||||
|
|
||||||
clone_folder: 'c:\go\src\github.com\appleboy\drone-telegram'
|
clone_folder: 'c:\go\src\github.com\appleboy\drone-telegram'
|
||||||
|
max_jobs: 1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPATH: c:\go
|
GOPATH: c:\go
|
||||||
@ -24,7 +26,12 @@ install:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
go build .
|
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
||||||
|
go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
||||||
|
} else {
|
||||||
|
$version = $env:APPVEYOR_REPO_TAG_NAME.substring(1)
|
||||||
|
go build -ldflags "-X main.Version=$version -X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe
|
||||||
|
}
|
||||||
docker pull microsoft/nanoserver:10.0.14393.1884
|
docker pull microsoft/nanoserver:10.0.14393.1884
|
||||||
docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows .
|
docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user