mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[CI] Fix packer cache node_modules references (#67208)
This commit is contained in:
parent
2bf3a592f4
commit
b2019c1924
1 changed files with 6 additions and 6 deletions
|
@ -35,20 +35,20 @@ mkdir -p ".geckodriver"
|
|||
cp "node_modules/geckodriver/geckodriver.tar.gz" .geckodriver/geckodriver.tar.gz
|
||||
echo "$geckodriverPkgVersion" > .geckodriver/pkgVersion
|
||||
|
||||
echo "Creating bootstrap_cache archive"
|
||||
|
||||
# archive cacheable directories
|
||||
mkdir -p "$HOME/.kibana/bootstrap_cache"
|
||||
tar -cf "$HOME/.kibana/bootstrap_cache/$branch.tar" \
|
||||
node_modules \
|
||||
packages/*/node_modules \
|
||||
x-pack/node_modules \
|
||||
x-pack/legacy/plugins/*/node_modules \
|
||||
x-pack/legacy/plugins/reporting/.chromium \
|
||||
test/plugin_functional/plugins/*/node_modules \
|
||||
examples/*/node_modules \
|
||||
.es \
|
||||
.chromedriver \
|
||||
.geckodriver;
|
||||
|
||||
echo "Adding node_modules"
|
||||
# Find all of the node_modules directories that aren't test fixtures, and aren't inside other node_modules directories, and append them to the tar
|
||||
find . -type d -name node_modules -not -path '*__fixtures__*' -prune -print0 | xargs -0I % tar -rf "$HOME/.kibana/bootstrap_cache/$branch.tar" "%"
|
||||
|
||||
echo "created $HOME/.kibana/bootstrap_cache/$branch.tar"
|
||||
|
||||
if [ "$branch" == "master" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue