Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ijaz Ahmad
ksonnet
Commits
5b4917a2
Unverified
Commit
5b4917a2
authored
Aug 02, 2018
by
Oren Shomron
Committed by
GitHub
Aug 02, 2018
Browse files
Merge pull request #812 from shomron/goreleaser-flags
Pass ldflags to goreleaser
parents
2ea702b7
58d64e65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
.goreleaser.yml
.goreleaser.yml
+3
-1
Makefile
Makefile
+6
-1
No files found.
.goreleaser.yml
View file @
5b4917a2
...
...
@@ -2,7 +2,7 @@ project_name: ks
builds
:
-
main
:
./cmd/ks/main.go
binary
:
ks
ldflags
:
-X main.version={{.Version}}
ldflags
:
-X
"
main.version={{.Version}}
" -X "main.apimachineryVersion={{.Env.APIMACHINERY_VER}}" -X "generator.revision={{.Commit}}"
goos
:
-
linux
-
darwin
...
...
@@ -33,3 +33,5 @@ brew:
email
:
heptibot@heptio.com
homepage
:
"
https://ksonnet.io"
description
:
"
The
ksonnet
command
line
utility.
Manage
and
deploy
Kubernetes
applications."
snapshot
:
name_template
:
SNAPSHOT-{{.Commit}}
Makefile
View file @
5b4917a2
...
...
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
SHELL
=
/bin/bash
VERSION
?=
dev-
$(
shell
date
+%FT%T%z
)
KS_BIN
?=
ks
...
...
@@ -76,4 +77,8 @@ generate:
clean
:
$(RM)
./ks ./docs/cli-reference/ks
*
.md
.PHONY
:
all ks test clean vet fmt docs install docker-image
snapshot
:
$(
shell
goreleaser
--rm-dist
||
true
)
$(
shell
APIMACHINERY_VER
=
$(APIMACHINERY_VER)
goreleaser
--snapshot
)
.PHONY
:
all ks test clean vet fmt docs install docker-image snapshot
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