From 8a44273b7b26baec6fdb7ee14539ee83c1fa159b Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 19 Apr 2026 01:53:46 +0300 Subject: build: add amplify.yml to gate soupault profiles by branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main → --profile staging, production → --profile live. Overrides console build spec; fixes live widgets appearing on staging. 🤖 Generated by robots (https://vyos.io) --- amplify.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 amplify.yml diff --git a/amplify.yml b/amplify.yml new file mode 100644 index 0000000..8900638 --- /dev/null +++ b/amplify.yml @@ -0,0 +1,27 @@ +version: 1 +applications: + - frontend: + phases: + preBuild: + commands: + - export GH_ACCESS_TOKEN=$(aws ssm get-parameter --name /amplify/shared/d224keb5xu0spt/GH_ACCESS_TOKEN --query Parameter.Value --output text --with-decryption) + - sudo yum install -y https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/c/cmark-0.29.0-4.el9.x86_64.rpm + - npm install -g sass@1.32.8 + - python3 -m venv .venv + - source .venv/bin/activate + - pip install pygithub jinja2 + - wget https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz + - tar xvf soupault-4.10.0-linux-x86_64.tar.gz + - mv -v ./soupault-4.10.0-linux-x86_64/soupault /usr/bin/ + build: + commands: + - source .venv/bin/activate + - '[ "$AWS_BRANCH" = "production" ] && export SOUPAULT_OPTS="--profile live" || export SOUPAULT_OPTS="--profile staging"' + - make all + artifacts: + baseDirectory: /build + files: + - '**/*' + cache: + paths: + - node_modules/**/* -- cgit v1.2.3