Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
2d6b3ce8
Commit
2d6b3ce8
authored
Oct 07, 2019
by
Deep Debroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build Windows only for amd64
Signed-off-by:
Deep Debroy
<
ddebroy@docker.com
>
parent
0affdf95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
build.make
build.make
+5
-1
No files found.
build.make
View file @
2d6b3ce8
...
...
@@ -57,13 +57,17 @@ else
TESTARGS
=
endif
ARCH
:=
$
(
if
$(GOARCH)
,
$(GOARCH)
,
$(
shell
go
env
GOARCH
)
)
# Specific packages can be excluded from each of the tests below by setting the *_FILTER_CMD variables
# to something like "| grep -v 'github.com/kubernetes-csi/project/pkg/foobar'". See usage below.
build-%
:
mkdir
-p
bin
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-ldflags
'-X main.version=
$(REV)
-extldflags "-static"'
-o
./bin/
$*
./cmd/
$*
CGO_ENABLED
=
0
GOOS
=
windows go build
-a
-ldflags
'-X main.version=
$(REV)
-extldflags "-static"'
-o
./bin/
$*
.exe ./cmd/
$*
if
[
"
$$
ARCH"
=
"amd64"
]
;
then
\
CGO_ENABLED
=
0
GOOS
=
windows go build
-a
-ldflags
'-X main.version=
$(REV)
-extldflags "-static"'
-o
./bin/
$*
.exe ./cmd/
$*
;
\
fi
container-%
:
build-%
docker build
-t
$*
:latest
-f
$(
shell
if
[
-e
./cmd/
$*
/Dockerfile
]
;
then
echo
./cmd/
$*
/Dockerfile
;
else
echo
Dockerfile
;
fi
)
--label
revision
=
$(REV)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment