From c959b6ff2d1a533a1be568d878090a26a402c99d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 12 Mar 2018 16:38:18 +0800 Subject: [PATCH] fix: windows exe path. --- .appveyor.yml | 4 ++-- .dockerignore | 1 - Dockerfile.windows | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e142a5c..c415310 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -24,10 +24,10 @@ install: build_script: - ps: | if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { - go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o gorush.exe + go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o release/gorush.exe } else { $version = $env:APPVEYOR_REPO_TAG_NAME - go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o gorush.exe + go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o release/gorush.exe } dir docker pull microsoft/nanoserver:10.0.14393.1884 diff --git a/.dockerignore b/.dockerignore index a301e6c..22571d1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,3 @@ * !config/ !release/ -gorush.exe diff --git a/Dockerfile.windows b/Dockerfile.windows index e94d27b..9aeffb6 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -6,5 +6,5 @@ LABEL maintainer="Bo-Yi Wu " \ org.label-schema.vendor="Bo-Yi Wu" \ org.label-schema.schema-version="1.0" -ADD gorush.exe c:\gorush.exe +ADD release/gorush.exe c:\gorush.exe ENTRYPOINT [ "c:\\gorush.exe" ]