Skip to content

Commit

Permalink
Add vendored-source logic to full release pipeline
Browse files Browse the repository at this point in the history
#1338 added this logic to the
nightly release pipeline.
  • Loading branch information
imjasonh committed Sep 20, 2019
1 parent c5dfdd8 commit 738e35e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/entrypoint/kodata/LICENSE
1 change: 1 addition & 0 deletions cmd/entrypoint/kodata/VENDOR-LICENSE
13 changes: 13 additions & 0 deletions tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ spec:
# Change to directory with our .ko.yaml
cd /workspace/go/src/github.com/tektoncd/pipeline
# For each cmd/* directory, include a full gzipped tar of all source in
# vendor/. This is overkill. Some deps' licenses require the source to be
# included in the container image when they're used as a dependency.
# Rather than trying to determine which deps have this requirement (and
# probably get it wrong), we'll just targz up the whole vendor tree and
# include it. As of 9/20/2019, this amounts to about 11MB of additional
# data in each image.
TMPDIR=$(mktemp -d)
tar cvfz ${TMPDIR}/source.tar.gz vendor/
for d in cmd/*; do
ln -s ${TMPDIR}/source.tar.gz ${d}/kodata/
done
# Publish images and create release.yaml
ko resolve --preserve-import-paths -f /workspace/go/src/github.com/tektoncd/pipeline/config/ > /workspace/output/bucket/latest/release.yaml
volumeMounts:
Expand Down

0 comments on commit 738e35e

Please sign in to comment.