build: use CI-provider independent variable names (#26377)
PR Close #26377
This commit is contained in:

committed by
Alex Rickabaugh

parent
8fff438767
commit
9d0a6554a3
@ -2,13 +2,12 @@
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
source "`dirname $0`/../../scripts/ci/env.sh" print
|
||||
|
||||
readonly INPUT_DIR=dist/
|
||||
readonly OUTPUT_FILE=$PROJECT_ROOT/$1
|
||||
readonly PR_NUMBER=$2
|
||||
readonly PR_LAST_SHA=$3
|
||||
readonly deployedUrl=https://pr${PR_NUMBER}-${PR_LAST_SHA:0:7}.ngbuilds.io/
|
||||
readonly relativeOutputPath=$1
|
||||
readonly prNumber=$2
|
||||
readonly prLastSha=$3
|
||||
readonly inputDir=dist/
|
||||
readonly outputFile=$PROJECT_ROOT/$relativeOutputPath
|
||||
readonly deployedUrl=https://pr${prNumber}-${prLastSha:0:7}.ngbuilds.io/
|
||||
|
||||
(
|
||||
cd $PROJECT_ROOT/aio
|
||||
@ -20,6 +19,6 @@ readonly deployedUrl=https://pr${PR_NUMBER}-${PR_LAST_SHA:0:7}.ngbuilds.io/
|
||||
# deployedUrl must end with /
|
||||
yarn set-opensearch-url $deployedUrl
|
||||
|
||||
mkdir -p "`dirname $OUTPUT_FILE`"
|
||||
tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" .
|
||||
mkdir -p "`dirname $outputFile`"
|
||||
tar --create --gzip --directory "$inputDir" --file "$outputFile" .
|
||||
)
|
||||
|
Reference in New Issue
Block a user