forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(websites): Add amplify build spec files to appropriate director…
…ies (vectordotdev#18668) * feat: add amplify build spec files to repo * chore: add amplify.yml to spell check exclude list
- Loading branch information
1 parent
75ebda0
commit 7cbb758
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 1 | ||
applications: | ||
- frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- mv ../../../scripts/ensure-wasm-pack-installed.sh ./ | ||
- chmod +x ./ensure-wasm-pack-installed.sh | ||
build: | ||
commands: | ||
- ./ensure-wasm-pack-installed.sh && wasm-pack build --target web --out-dir public/pkg | ||
artifacts: | ||
baseDirectory: public | ||
files: | ||
- '**/*' | ||
cache: | ||
paths: [] | ||
appRoot: lib/vector-vrl/web-playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 1 | ||
applications: | ||
- frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- mkdir -p ./public | ||
build: | ||
commands: | ||
- make ci-docs-build | ||
- echo "<meta charset=\"UTF-8\" >" > ../target/doc/index.html | ||
- mv ../target/doc ./public | ||
- rm -rf ../target | ||
artifacts: | ||
baseDirectory: public/doc | ||
files: | ||
- '**/*' | ||
cache: | ||
paths: [] | ||
appRoot: rust-doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: 1 | ||
applications: | ||
- frontend: | ||
phases: | ||
preBuild: | ||
commands: | ||
- echo "Installing Make..." | ||
- yum install -y make | ||
- make -v | ||
- echo "Installing Cuelang..." | ||
- curl -LO "https://github.com/cue-lang/cue/releases/download/v0.6.0/cue_v0.6.0_linux_amd64.tar.gz" | ||
- mkdir tmp_cue_install | ||
- tar xzf cue_v0.6.0_linux_amd64.tar.gz -C tmp_cue_install | ||
- mv tmp_cue_install/cue /usr/bin/ | ||
- rm -rf tmp_cue_install | ||
- cue version | ||
- echo "Installing htmltest..." | ||
- curl -LO "https://github.com/wjdp/htmltest/releases/download/v0.17.0/htmltest_0.17.0_linux_amd64.tar.gz" | ||
- tar xzf htmltest_0.17.0_linux_amd64.tar.gz | ||
- mv htmltest /usr/local/bin/ | ||
- htmltest --version | ||
- echo "Installing Hugo v${HUGO_VERSION}..." | ||
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" | ||
- tar xzf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | ||
- mv hugo /usr/bin/ | ||
- hugo version | ||
build: | ||
commands: | ||
- if [ ! -n "${AWS_PULL_REQUEST_ID}" ]; then DEPLOY_PRIME_URL="https://$(echo "${AWS_BRANCH}" | sed 's/[./]/-/g').d1a7j77663uxsc.amplifyapp.com"; else DEPLOY_PRIME_URL="https://pr-${AWS_PULL_REQUEST_ID}.d1a7j77663uxsc.amplifyapp.com"; fi | ||
- make $DEPLOY_COMMAND | ||
artifacts: | ||
baseDirectory: public | ||
files: | ||
- '**/*' | ||
cache: | ||
paths: | ||
- node_modules/**/* | ||
appRoot: website |