diff --git a/.github/actions/spelling/excludes.txt b/.github/actions/spelling/excludes.txt index 620bf03ad6410..f7674ed58ce6c 100644 --- a/.github/actions/spelling/excludes.txt +++ b/.github/actions/spelling/excludes.txt @@ -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$ + diff --git a/lib/vector-vrl/web-playground/amplify.yml b/lib/vector-vrl/web-playground/amplify.yml new file mode 100644 index 0000000000000..4cca84a980f93 --- /dev/null +++ b/lib/vector-vrl/web-playground/amplify.yml @@ -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 diff --git a/rust-doc/amplify.yml b/rust-doc/amplify.yml new file mode 100644 index 0000000000000..9ab3495eb0719 --- /dev/null +++ b/rust-doc/amplify.yml @@ -0,0 +1,20 @@ +version: 1 +applications: + - frontend: + phases: + preBuild: + commands: + - mkdir -p ./public + build: + commands: + - make ci-docs-build + - echo "" > ../target/doc/index.html + - mv ../target/doc ./public + - rm -rf ../target + artifacts: + baseDirectory: public/doc + files: + - '**/*' + cache: + paths: [] + appRoot: rust-doc diff --git a/website/amplify.yml b/website/amplify.yml new file mode 100644 index 0000000000000..e1b7f3ac8a13f --- /dev/null +++ b/website/amplify.yml @@ -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