Skip to content

Commit 21f5eea

Browse files
authored
Merge branch 'main' into feat/minds
2 parents 5799364 + 807dfd7 commit 21f5eea

140 files changed

Lines changed: 21892 additions & 1414 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/audit.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ ignore = [
1313
"RUSTSEC-2025-0134",
1414
# time: DoS via stack exhaustion — transitive dep via serde_with, pinned by soroban-sdk 22.0.0
1515
"RUSTSEC-2026-0009",
16+
# libcrux-poly1305: CVSS 4.0 parsing issue in advisory tooling; tracked upstream
17+
"RUSTSEC-2026-0073",
1618
]

.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ linker = "clang"
88
linker = "clang"
99

1010
[build]
11-
target = "x86_64-pc-windows-gnu"
11+
# Use the Linux host target by default so CI (Linux runners) can build/tests.
12+
# Change this if you intentionally need a Windows cross-target here.
13+
target = "x86_64-unknown-linux-gnu"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Analytics aggregate
2+
3+
on:
4+
push:
5+
branches:
6+
- feature/search-analytics-tracking
7+
schedule:
8+
- cron: '0 2 * * *' # nightly at 02:00 UTC
9+
10+
jobs:
11+
aggregate:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
- name: Run aggregator
20+
run: |
21+
node scripts/analytics/aggregate_search_events.js
22+
- name: Smoke test suggestions
23+
run: |
24+
node scripts/analytics/smoke_test_suggestions.js
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Blue-Green Deploy to EKS
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
env:
12+
IMAGE_NAME: ghcr.io/${{ github.repository }}/myapp
13+
K8S_NAMESPACE: default
14+
AWS_REGION: ${{ secrets.AWS_REGION }}
15+
EKS_CLUSTER_NAME: ${{ secrets.EKS_CLUSTER_NAME }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Configure AWS credentials
21+
if: env.AWS_REGION != ''
22+
uses: aws-actions/configure-aws-credentials@v2
23+
with:
24+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
25+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26+
aws-region: ${{ secrets.AWS_REGION }}
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v2
30+
31+
- name: Log in to GitHub Container Registry
32+
uses: docker/login-action@v2
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
38+
- name: Build and push image
39+
id: build
40+
uses: docker/build-push-action@v4
41+
with:
42+
push: true
43+
tags: |
44+
"${{ env.IMAGE_NAME }}:latest"
45+
"${{ env.IMAGE_NAME }}:${{ github.sha }}"
46+
- name: Configure kubectl (EKS)
47+
if: env.AWS_REGION != ''
48+
run: |
49+
aws eks update-kubeconfig --region ${{ secrets.AWS_REGION }} --name ${{ secrets.EKS_CLUSTER_NAME }}
50+
51+
- name: Deploy (Blue-Green)
52+
env:
53+
IMAGE: ${{ env.IMAGE_NAME }}:${{ github.sha }}
54+
K8S_NAMESPACE: ${{ env.K8S_NAMESPACE }}
55+
run: |
56+
chmod +x ./scripts/blue-green-deploy.sh
57+
./scripts/blue-green-deploy.sh "$IMAGE" "$K8S_NAMESPACE"
58+
59+
- name: Notify on failure and rollback
60+
if: failure()
61+
run: |
62+
chmod +x ./scripts/blue-green-rollback.sh
63+
./scripts/blue-green-rollback.sh "$K8S_NAMESPACE"

0 commit comments

Comments
 (0)