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
9fba09b4
You need to sign in or sign up before continuing.
Commit
9fba09b4
authored
Aug 28, 2019
by
Deep Debroy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rule for building Windows binaries
Signed-off-by:
Deep Debroy
<
ddebroy@docker.com
>
parent
04008676
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
build.make
build.make
+1
-0
No files found.
build.make
View file @
9fba09b4
...
@@ -63,6 +63,7 @@ endif
...
@@ -63,6 +63,7 @@ endif
build-%
:
build-%
:
mkdir
-p
bin
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
=
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/
$*
./cmd/
$*
container-%
:
build-%
container-%
:
build-%
docker build
-t
$*
:latest
-f
$(
shell
if
[
-e
./cmd/
$*
/Dockerfile
]
;
then
echo
./cmd/
$*
/Dockerfile
;
else
echo
Dockerfile
;
fi
)
--label
revision
=
$(REV)
.
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