Skip to content

Commit

Permalink
Adds license to archive
Browse files Browse the repository at this point in the history
  • Loading branch information
rewanthtammana committed Dec 4, 2019
1 parent 4c09dd2 commit af49196
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

VERSION_MAJOR := 1
VERSION_MINOR := 2
VERSION_PATCH := 2
VERSION_PATCH := 3
VERSION_SUFFIX := ""

COMMIT := $(shell git describe --always)
Expand Down Expand Up @@ -31,19 +31,19 @@ build-linux:
@echo "Creating Build for Linux..."
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Linux-x86_64/kubectl-fields
@cp LICENSE ./releases/$(VERSION)/Linux-x86_64
@tar zcf ./releases/$(VERSION)/kubectl-fields-Linux-x86_64.tar.gz -C releases/$(VERSION)/Linux-x86_64 kubectl-fields
@tar zcf ./releases/$(VERSION)/kubectl-fields-Linux-x86_64.tar.gz -C releases/$(VERSION)/Linux-x86_64 kubectl-fields LICENSE

build-darwin:
@echo "Creating Build for macOS..."
@CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Darwin-x86_64/kubectl-fields
@cp LICENSE ./releases/$(VERSION)/Darwin-x86_64
@tar zcf ./releases/$(VERSION)/kubectl-fields-Darwin-x86_64.tar.gz -C releases/$(VERSION)/Darwin-x86_64 kubectl-fields
@tar zcf ./releases/$(VERSION)/kubectl-fields-Darwin-x86_64.tar.gz -C releases/$(VERSION)/Darwin-x86_64 kubectl-fields LICENSE

build-windows:
@echo "Creating Build for Windows..."
@CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o ./releases/$(VERSION)/Windows-x86_64/kubectl-fields.exe
@cp LICENSE ./releases/$(VERSION)/Windows-x86_64
@zip -j ./releases/$(VERSION)/kubectl-fields-Windows-x86_64.zip releases/$(VERSION)/Windows-x86_64/kubectl-fields.exe
@zip -j ./releases/$(VERSION)/kubectl-fields-Windows-x86_64.zip releases/$(VERSION)/Windows-x86_64/kubectl-fields.exe LICENSE

build: build-linux build-darwin build-windows

Expand Down
14 changes: 7 additions & 7 deletions deploy/krew/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ metadata:
name: fields
spec:
platforms:
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.1/kubectl-fields-Darwin-x86_64.tar.gz
sha256: 31567d31cfbd41ccb168d9017682cfbf1b79d7813cfe61679f2647325ef1fc5f
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.3/kubectl-fields-Darwin-x86_64.tar.gz
sha256: 2b07be546f1b5f69f718b99d8c874336895850021fb905175e304ba15f71ccb4
bin: kubectl-fields
files:
- from: "*"
Expand All @@ -14,8 +14,8 @@ spec:
matchLabels:
os: darwin
arch: amd64
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.1/kubectl-fields-Linux-x86_64.tar.gz
sha256: 986bef8e231a59a1a57e3d6625dd033ce8077b5dbc7eb1ddfbcfe974c316a895
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.3/kubectl-fields-Linux-x86_64.tar.gz
sha256: 5b4d0b63556929eb101cd7006898214ab9681dca94da5f40757a3556259adcc7
bin: kubectl-fields
files:
- from: "*"
Expand All @@ -24,8 +24,8 @@ spec:
matchLabels:
os: linux
arch: amd64
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.1/kubectl-fields-Windows-x86_64.zip
sha256: d12f5214f351d685e77fb2c781742879be82cb268cda2731d786f79a46a24bae
- uri: https://github.com/rewanth1997/kubectl-fields/releases/download/v1.2.3/kubectl-fields-Windows-x86_64.zip
sha256: eced38433f2127c83e169585f387f5b43eee95eba75b8de37efa3ed1261a814e
bin: kubectl-fields.exe
files:
- from: "*"
Expand All @@ -34,7 +34,7 @@ spec:
matchLabels:
os: windows
arch: amd64
version: v1.2.1
version: v1.2.3
homepage: https://github.com/rewanth1997/kubectl-fields
caveats: |
Usage:
Expand Down

0 comments on commit af49196

Please sign in to comment.