Skip to content

Commit

Permalink
chore(websites): Add amplify build spec files to appropriate director…
Browse files Browse the repository at this point in the history
…ies (vectordotdev#18668)

* feat: add amplify build spec files to repo

* chore: add amplify.yml to spell check exclude list
  • Loading branch information
devindford authored Sep 25, 2023
1 parent 75ebda0 commit 7cbb758
Showing 4 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/spelling/excludes.txt
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
(?:^|/)pyproject.toml
(?:^|/)requirements(?:-dev|-doc|-test|)\.txt$
(?:^|/)vendor/
(?:^|/)amplify\.yml$
\.a$
\.ai$
\.all-contributorsrc$
@@ -103,3 +104,4 @@
^\Qwebsite/layouts/shortcodes/config/unit-tests.html\E$
^lib/codecs/tests/data/native_encoding/
ignore$

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..."
- 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

0 comments on commit 7cbb758

Please sign in to comment.