Use repo web build and agenix in deploy
Some checks failed
ci-gates / checks (push) Failing after 1m32s
deploy-cloudflare / checks (push) Successful in 1m49s
deploy-cloudflare/breadcrumb bootstrap ok
deploy-cloudflare / deploy (push) Failing after 21s

This commit is contained in:
Conrad Kramer 2026-06-10 03:46:47 -07:00
parent 0c41193867
commit fa23ad6844
No known key found for this signature in database
3 changed files with 7 additions and 5 deletions

View file

@ -83,7 +83,7 @@ jobs:
run: |
set -euo pipefail
cd .repo
nix develop --accept-flake-config -c bash -c 'cd apps/web && env -u NO_COLOR trunk build --release --public-url /'
bash ./scripts/build-web.sh
deploy:
if: ${{ github.server_url != 'https://codeberg.org' }}
@ -136,7 +136,7 @@ jobs:
run: |
set -euo pipefail
cd .repo
nix develop --accept-flake-config -c age --version
nix develop --accept-flake-config -c bash -c 'command -v agenix >/dev/null'
nix develop --accept-flake-config -c node --version
nix develop --accept-flake-config -c npm --version
nix develop --accept-flake-config -c wrangler --version
@ -191,7 +191,7 @@ jobs:
echo "error: missing ${secret_file}"
exit 2
fi
CLOUDFLARE_API_TOKEN="$(nix develop --accept-flake-config -c age -d -i "$key_file" "$secret_file")"
CLOUDFLARE_API_TOKEN="$(nix develop --accept-flake-config -c agenix -d "$secret_file" -i "$key_file")"
if [[ -z "${CLOUDFLARE_API_TOKEN}" ]]; then
echo "error: decrypted CLOUDFLARE_API_TOKEN is empty"
exit 2
@ -211,7 +211,7 @@ jobs:
run: |
set -euo pipefail
cd .repo
nix develop --accept-flake-config -c bash -c 'cd apps/web && env -u NO_COLOR trunk build --release --public-url /'
bash ./scripts/build-web.sh
curl -fsSL -X POST -H "Authorization: token ${GITHUB_TOKEN}" \
-H "content-type: application/json" \