Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ on:
branches: [ main ]

jobs:
readme:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Ensure scaffold files exist
run: |
test -f README.md
test -f LICENSE
test -f .release-versions.env
- name: Validate release versions
run: bash tests/validate-schemas.sh
- name: Validate pipeline files
run: bash tests/validate-scripts.sh
51 changes: 51 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
image: ghcr.io/aurekai/aurekai:0.8.0-alpha.4

stages:
- validate
- audit
- pack
- gate

doctor-deep:
stage: validate
script:
- akai doctor --deep --json

manifest-verify:
stage: validate
script:
- akai verify --manifest artifact.json --json

model-memory-pack:
stage: pack
script:
- akai pack --tag latest --json
artifacts:
paths:
- artifacts/

sae-audit:
stage: audit
script:
- akai sae audit --model default --json

semantic-cache-bench:
stage: audit
script:
- akai cache bench --queries 100 --json

proof-bundle-export:
stage: audit
script:
- akai proof export --output proof-bundle.tar.gz
artifacts:
paths:
- proof-bundle.tar.gz

release-gate:
stage: gate
script:
- akai release gate --version 0.8.0-alpha.4 --json
only:
- main
- tags
4 changes: 4 additions & 0 deletions .release-versions.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AUREKAI_VERSION=0.8.0-alpha.4
AKAI_PACKAGE_VERSION=0.8.0-alpha.4
AUREKAI_MANIFEST_SCHEMA=aurekai.deploy.v1
HELM_CHART_VERSION=0.8.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Aurekai integration surface for Gitlab Ci.

Status: planned
Status: active
Type: workflow

## Core Template Set
Expand Down
33 changes: 33 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Quickstart — aurekai-gitlab-ci

Run Aurekai pipeline templates as GitLab CI stages.

## Usage

Copy `.gitlab-ci.yml` to your repo root, or include it:

```yaml
include:
- project: 'aurekai/aurekai-gitlab-ci'
ref: main
file: '.gitlab-ci.yml'
```

## Stages

| Stage | Job | Description |
|---|---|---|
| validate | doctor-deep | `akai doctor --deep` |
| validate | manifest-verify | Manifest schema check |
| pack | model-memory-pack | Pack model artifacts |
| audit | sae-audit | SAE audit |
| audit | semantic-cache-bench | Cache benchmark |
| audit | proof-bundle-export | Export proof bundle |
| gate | release-gate | Release gate check |

## Validate Locally

```bash
bash tests/validate-schemas.sh
bash tests/validate-scripts.sh
```
13 changes: 13 additions & 0 deletions tests/validate-schemas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
ENV_FILE="$(cd "$(dirname "$0")/.." && pwd)/.release-versions.env"
echo "Checking .release-versions.env..."
test -f "$ENV_FILE" || { echo "MISSING: $ENV_FILE"; exit 1; }
for key in AUREKAI_VERSION AKAI_PACKAGE_VERSION AUREKAI_MANIFEST_SCHEMA HELM_CHART_VERSION; do
if grep -q "^${key}=" "$ENV_FILE"; then
echo " v $key"
else
echo " x $key missing"; exit 1
fi
done
echo; echo "All schema checks passed."
7 changes: 7 additions & 0 deletions tests/validate-scripts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
echo "Validating .gitlab-ci.yml..."
python3 -c "import yaml,sys; yaml.safe_load(open(sys.argv[1]))" "$ROOT/.gitlab-ci.yml"
echo " v .gitlab-ci.yml"
echo; echo "GitLab CI validation passed."
Loading