Skip to content

Commit

Permalink
Ensure krew plugin includes license
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Apr 10, 2020
1 parent 55052c0 commit 4badcdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ build/images/nginx/aws.tfvars
build/images/nginx/env.tfvars

images/fastcgi-helloserver/rootfs/fastcgi-helloserver

cmd/plugin/release/ingress-nginx.yaml
cmd/plugin/release/*.tar.gz
cmd/plugin/release/LICENSE
3 changes: 2 additions & 1 deletion build/build-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ function build_for_arch(){
-X ${PKG}/version.REPO=${REPO_INFO}" \
-o "${release}/kubectl-ingress_nginx${extension}" "${PKG}/cmd/plugin"

tar -C "${release}" -zcvf "${release}/kubectl-ingress_nginx-${os}-${arch}.tar.gz" "kubectl-ingress_nginx${extension}"
cp LICENSE ${release}
tar -C "${release}" -zcvf "${release}/kubectl-ingress_nginx-${os}-${arch}.tar.gz" "kubectl-ingress_nginx${extension}" LICENSE
rm "${release}/kubectl-ingress_nginx${extension}"
hash=$(sha256sum "${release}/kubectl-ingress_nginx-${os}-${arch}.tar.gz" | awk '{ print $1 }')
sed -i "s/%%%shasum_${os}_${arch}%%%/${hash}/g" "${release}/ingress-nginx.yaml"
Expand Down

0 comments on commit 4badcdd

Please sign in to comment.