From 6a15a1fd588ce411139a232ec3173c78107fbcb7 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 20 Dec 2017 09:19:57 +0800 Subject: [PATCH] fix(docker): add BuildNum variable. --- .appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 7030b6b..6dcb583 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -27,10 +27,10 @@ install: build_script: - ps: | if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { - go build -ldflags "-X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe + go build -ldflags "-X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe } else { $version = $env:APPVEYOR_REPO_TAG_NAME - go build -ldflags "-X main.Version=$version -X main.build=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe + go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o drone-telegram.exe } docker pull microsoft/nanoserver:10.0.14393.1884 docker build -f Dockerfile.windows -t appleboy/drone-telegram:windows .