fix: windows exe path.
This commit is contained in:
parent
023c255fe1
commit
c959b6ff2d
|
@ -24,10 +24,10 @@ install:
|
||||||
build_script:
|
build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
|
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 {
|
} else {
|
||||||
$version = $env:APPVEYOR_REPO_TAG_NAME
|
$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
|
dir
|
||||||
docker pull microsoft/nanoserver:10.0.14393.1884
|
docker pull microsoft/nanoserver:10.0.14393.1884
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
*
|
*
|
||||||
!config/
|
!config/
|
||||||
!release/
|
!release/
|
||||||
gorush.exe
|
|
||||||
|
|
|
@ -6,5 +6,5 @@ LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
|
||||||
org.label-schema.vendor="Bo-Yi Wu" \
|
org.label-schema.vendor="Bo-Yi Wu" \
|
||||||
org.label-schema.schema-version="1.0"
|
org.label-schema.schema-version="1.0"
|
||||||
|
|
||||||
ADD gorush.exe c:\gorush.exe
|
ADD release/gorush.exe c:\gorush.exe
|
||||||
ENTRYPOINT [ "c:\\gorush.exe" ]
|
ENTRYPOINT [ "c:\\gorush.exe" ]
|
||||||
|
|
Loading…
Reference in New Issue