summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-04-19 01:53:46 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-04-19 01:53:46 +0300
commit8a44273b7b26baec6fdb7ee14539ee83c1fa159b (patch)
tree832d531e58ed45f72a72f8a3cc2ef27e806e872b
parent4be022b6714194cca6b481fdb8799a59000b0ca2 (diff)
downloadcommunity.vyos.net-8a44273b7b26baec6fdb7ee14539ee83c1fa159b.tar.gz
community.vyos.net-8a44273b7b26baec6fdb7ee14539ee83c1fa159b.zip
build: add amplify.yml to gate soupault profiles by branch
main → --profile staging, production → --profile live. Overrides console build spec; fixes live widgets appearing on staging. 🤖 Generated by robots (https://vyos.io)
-rw-r--r--amplify.yml27
1 files changed, 27 insertions, 0 deletions
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/**/*