bae705aa97
- Add NFC ePassport roadmap (ICAO 9303, eIDAS) - Add TensorFlow.js edge face detection (BlazeFace) - Add structured audit logger (GDPR-compliant) - Risk scoring support Part of KYC Apple Native UX v1.1.0
93 lines
1.9 KiB
Markdown
93 lines
1.9 KiB
Markdown
# AAMOS CI/CD Setup
|
|
|
|
## ✅ Klart
|
|
|
|
### Repositories (Git)
|
|
|
|
| Repo | Commit | Status |
|
|
|------|--------|--------|
|
|
| aamos-ledger | be4bccc | ✅ Rust-backend |
|
|
| aamos-ledger-ui | b364916 | ✅ iOS-native UI |
|
|
| landvex-data | 964c7a5 | ✅ SIE4-filer |
|
|
| aamos-infrastructure | e230283 | ✅ CI/CD + docs |
|
|
|
|
### CI/CD Pipeline
|
|
|
|
- **Auto-deploy:** Var 5:e minut via systemd timer
|
|
- **Manuell deploy:** `./scripts/deploy-all.sh`
|
|
- **Webhook:** Port 9000 för GitHub/GitLab integration
|
|
|
|
### SSH-nyckel
|
|
|
|
```bash
|
|
cat ~/.ssh/id_rsa.pub
|
|
```
|
|
|
|
Lägg till på GitHub/GitLab för deploy-åtkomst.
|
|
|
|
## 🚀 Nästa steg
|
|
|
|
### 1. GitHub/GitLab integration
|
|
|
|
```bash
|
|
# Lägg till remote
|
|
cd work/aamos-ledger
|
|
git remote add github git@github.com:landvex/aamos-ledger.git
|
|
git push github main
|
|
```
|
|
|
|
### 2. Aktivera auto-deploy
|
|
|
|
```bash
|
|
sudo cp work/aamos-infrastructure/systemd/aamos-ci.* /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable aamos-ci.timer
|
|
sudo systemctl start aamos-ci.timer
|
|
```
|
|
|
|
### 3. Starta webhook server
|
|
|
|
```bash
|
|
node work/aamos-infrastructure/scripts/webhook-server.js &
|
|
```
|
|
|
|
## 📁 Struktur
|
|
|
|
```
|
|
workspace/
|
|
├── repos/ # Bare repos
|
|
│ ├── aamos-ledger.git
|
|
│ ├── aamos-ledger-ui.git
|
|
│ ├── landvex-data.git
|
|
│ └── aamos-infrastructure.git
|
|
├── work/ # Arbetskopior
|
|
│ ├── aamos-ledger/
|
|
│ ├── aamos-ledger-ui/
|
|
│ ├── landvex-data/
|
|
│ └── aamos-infrastructure/
|
|
├── REPOSITORIES.md
|
|
├── VERSIONS.md
|
|
└── CICD-SETUP.md
|
|
```
|
|
|
|
## 🔗 URL:er
|
|
|
|
| Tjänst | URL |
|
|
|--------|-----|
|
|
| Ledger UI | https://bernt.wavult.com/finans/ |
|
|
| Ledger API | https://bernt.wavult.com/api/v1/ |
|
|
| Health | https://bernt.wavult.com/health |
|
|
|
|
## 📝 Kommandon
|
|
|
|
```bash
|
|
# Deploy allt
|
|
./work/aamos-infrastructure/scripts/deploy-all.sh
|
|
|
|
# Kolla CI-status
|
|
sudo systemctl status aamos-ci.timer
|
|
|
|
# Visa logs
|
|
sudo journalctl -u aamos-ci
|
|
```
|