Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(websites): Add amplify build spec files to appropriate directories #18668

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions lib/vector-vrl/web-playground/amplify.yml
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
20 changes: 20 additions & 0 deletions rust-doc/amplify.yml
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
38 changes: 38 additions & 0 deletions website/amplify.yml
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..."
Fixed Show fixed Hide fixed
- 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
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
- make $DEPLOY_COMMAND
artifacts:
baseDirectory: public
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: website