mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(cherry picked from commit 95d3090f1a
)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
b54cdc1a11
commit
35e082fcfe
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ const { BASE_BUCKET_DAILY } = require('./bucket_config.js');
|
|||
cd "${destination}"
|
||||
gsutil -m cp -r *.* gs://${BASE_BUCKET_DAILY}/${DESTINATION}
|
||||
cp manifest.json manifest-latest.json
|
||||
gsutil cp manifest-latest.json gs://${BASE_BUCKET_DAILY}/${VERSION}
|
||||
gsutil -h "Cache-Control:no-cache, max-age=0, no-transform" cp manifest-latest.json gs://${BASE_BUCKET_DAILY}/${VERSION}
|
||||
|
||||
buildkite-agent meta-data set ES_SNAPSHOT_MANIFEST 'https://storage.googleapis.com/${BASE_BUCKET_DAILY}/${DESTINATION}/manifest.json'
|
||||
buildkite-agent meta-data set ES_SNAPSHOT_VERSION '${VERSION}'
|
||||
|
|
|
@ -39,11 +39,11 @@ const { BASE_BUCKET_DAILY, BASE_BUCKET_PERMANENT } = require('./bucket_config.js
|
|||
`
|
||||
set -euo pipefail
|
||||
cp manifest.json manifest-latest-verified.json
|
||||
gsutil cp manifest-latest-verified.json gs://${BASE_BUCKET_DAILY}/${version}/
|
||||
gsutil -h "Cache-Control:no-cache, max-age=0, no-transform" cp manifest-latest-verified.json gs://${BASE_BUCKET_DAILY}/${version}/
|
||||
rm manifest.json
|
||||
cp manifest-permanent.json manifest.json
|
||||
gsutil -m cp -r gs://${bucket}/* gs://${BASE_BUCKET_PERMANENT}/${version}/
|
||||
gsutil cp manifest.json gs://${BASE_BUCKET_PERMANENT}/${version}/
|
||||
gsutil -h "Cache-Control:no-cache, max-age=0, no-transform" cp manifest.json gs://${BASE_BUCKET_PERMANENT}/${version}/
|
||||
`,
|
||||
{ shell: '/bin/bash' }
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue