Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-brain-core / .github/workflows/ci_cd.yml |
| Date | Not specified in source |
| Repository | Janady13/ai-brain-core |
| Revision | f7275582f13ada80bfb3b1008089800ca26f4a23 |
| Branch | main |
| Path or archive member | .github/workflows/ci_cd.yml |
| Original SHA-256 | 98fc438a56130d619dd81176d664dea1c2a09ecdc74aaa4216657b82e462c150 |
| Git blob SHA | 52d97182fcd39788074729eb8caf747d56256ee3 |
| Reading-copy SHA-256 | 98fc438a56130d619dd81176d664dea1c2a09ecdc74aaa4216657b82e462c150 |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/ai-brain-core / .github/workflows/ci_cd.yml | main | f7275582f13ada80bfb3b1008089800ca26f4a23 | Open original |
| Janady13/ai-brain-core / .github/workflows/ci_cd.yml | claude/agi-architecture-diagram-01GJ7CohfKvLb77yiKpHqd6d | 365850e27004318edd582881225024026b118c2d | Open original |
| Janady13/ai-brain-core / .github/workflows/ci_cd.yml | healer-core | 0fe4cbbaa91912149f1a8e32205371ff67017268 | Open original |
Recovered source transcript
Download complete source text ↓87 lines · 2.2 KB
name: AI Brain CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Heal all files
run: |
echo "🔧 Healing scripts..."
find . -type f -name "*.sh" -exec chmod +x {} \;
find . -type f -exec dos2unix {} \; || true
python3 -m compileall . || true
- name: Verify sub-brains
run: |
echo "🧠 Checking sub-brains..."
for brain in sub_brains/*; do
if [ -x "$brain/launch.sh" ]; then
echo "🚀 Launching $brain..."
timeout 5s bash "$brain/launch.sh" > test.log 2>&1 || true
if grep -q "❌" test.log; then
echo "❌ Failure in $brain"
cat test.log
exit 1
fi
echo "✅ $brain OK"
fi
done
docker:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}/ai-brain:latest
${{ secrets.DOCKERHUB_USERNAME }}/ai-brain:latest
deploy:
needs: docker
runs-on: ubuntu-latest
steps:
- name: Deploy placeholder
run: |
echo "🌍 Ready to deploy anywhere!"
echo "Image available at:"
echo " ghcr.io/${GITHUB_REPOSITORY}/ai-brain:latest"
echo " docker.io/${{ secrets.DOCKERHUB_USERNAME }}/ai-brain:latest"
echo "🔗 Hook this job into Kubernetes, AWS, GCP, or bare-metal servers."