ci(aio): add initial implementation for aio-builds setup
This commit is contained in:

committed by
Chuck Jazdzewski

parent
794f8f4e6a
commit
115164033b
15
aio/scripts/deploy-preview.sh
Executable file
15
aio/scripts/deploy-preview.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux -o pipefail
|
||||
|
||||
|
||||
INPUT_DIR=dist/
|
||||
OUTPUT_FILE=/tmp/snapshot.tar.gz
|
||||
AIO_BUILDS_HOST=https://ngbuilds.io
|
||||
|
||||
cd "`dirname $0`/.."
|
||||
yarn run build -- --prod
|
||||
tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" .
|
||||
curl -iLX POST --header "Authorization: Token $NGBUILDS_IO_KEY" --data-binary "@$OUTPUT_FILE" \
|
||||
"$AIO_BUILDS_HOST/create-build/$TRAVIS_PULL_REQUEST/$TRAVIS_COMMIT"
|
||||
cd -
|
Reference in New Issue
Block a user