Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
96e2da29
Commit
96e2da29
authored
Nov 22, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use git archive to produce kubernetes-src.tar.gz when possible
parent
2b04a66d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
release.sh
build/lib/release.sh
+6
-1
No files found.
build/lib/release.sh
View file @
96e2da29
...
@@ -98,7 +98,11 @@ function kube::release::package_tarballs() {
...
@@ -98,7 +98,11 @@ function kube::release::package_tarballs() {
# Package the source code we built, for compliance/licensing/audit/yadda.
# Package the source code we built, for compliance/licensing/audit/yadda.
function
kube::release::package_src_tarball
()
{
function
kube::release::package_src_tarball
()
{
local
-r
src_tarball
=
"
${
RELEASE_TARS
}
/kubernetes-src.tar.gz"
kube::log::status
"Building tarball: src"
kube::log::status
"Building tarball: src"
if
[[
"
${
KUBE_GIT_TREE_STATE
-
}
"
==
"clean"
]]
;
then
git archive
-o
"
${
src_tarball
}
"
HEAD
else
local
source_files
=(
local
source_files
=(
$(
cd
"
${
KUBE_ROOT
}
"
&&
find
.
-mindepth
1
-maxdepth
1
\
$(
cd
"
${
KUBE_ROOT
}
"
&&
find
.
-mindepth
1
-maxdepth
1
\
-not
\(
\
-not
\(
\
...
@@ -109,7 +113,8 @@ function kube::release::package_src_tarball() {
...
@@ -109,7 +113,8 @@ function kube::release::package_src_tarball() {
\)
-prune
\
\)
-prune
\
\)
)
\)
)
)
)
"
${
TAR
}
"
czf
"
${
RELEASE_TARS
}
/kubernetes-src.tar.gz"
-C
"
${
KUBE_ROOT
}
"
"
${
source_files
[@]
}
"
"
${
TAR
}
"
czf
"
${
src_tarball
}
"
-C
"
${
KUBE_ROOT
}
"
"
${
source_files
[@]
}
"
fi
}
}
# Package up all of the cross compiled clients. Over time this should grow into
# Package up all of the cross compiled clients. Over time this should grow into
...
...
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