Revision 8f62aac6ea8490abf91bb80118cf3518866dd02a authored by Matthieu Riegler on 22 April 2024, 20:51:43 UTC, committed by Alex Rickabaugh on 23 April 2024, 20:04:51 UTC
Identity tracking was not a good choice here 🙃 PR Close #55470
1 parent 7aff867
build-artifacts.sh
#!/usr/bin/env bash
set -eu -o pipefail
readonly relativeOutputPath=$1
readonly prNumber=$2
readonly prLastSha=$3
readonly inputDir=../dist/bin/aio/build
readonly outputFile=$PROJECT_ROOT/$relativeOutputPath
readonly deployedUrl=https://pr${prNumber}-${prLastSha:0:7}.ngbuilds.io/
(
cd $PROJECT_ROOT/aio
# Build and store the app
yarn build-prod
# Remove write protection from the opensearch.xml in the Bazel
# output tree so that the url can be substituted.
chmod u+w ../dist/bin/aio/build/assets/opensearch.xml
# Set deployedUrl as parameter in the opensearch description
# deployedUrl must end with /
yarn set-opensearch-url $deployedUrl
mkdir -p "`dirname $outputFile`"
tar --create --gzip --directory "$inputDir" --file "$outputFile" .
)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...