* Update cognify and the networkx client to prepare for running in Neo4j * Fix for openai model * Add the fix to the infra so that the models can be passed to the library. Enable llm_provider to be passed. * Auto graph generation now works with neo4j * Added fixes for both neo4j and networkx * Explicitly name semantic node connections * Added updated docs, readme, chunkers and updates to cognify * Make docs build trigger only when changes on it happen * Update docs, test git actions * Separate cognify logic into tasks * Introduce dspy knowledge graph extraction --------- Co-authored-by: Boris Arzentar <borisarzentar@gmail.com>
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
name: publish dev | Docker image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- feature/*
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
env:
|
|
AWS_ROLE_DEV_CICD: "arn:aws:iam::463722570299:role/promethai-dev-base-role-github-ci-cd"
|
|
AWS_ACCOUNT_ID_DEV: "463722570299"
|
|
|
|
jobs:
|
|
|
|
publish_docker_to_ecr:
|
|
name: Publish Docker PromethAI image
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
steps:
|
|
- name: Take code from repo
|
|
uses: actions/checkout@v3
|
|
- name: Set environment variable for stage
|
|
id: set-env
|
|
run: |
|
|
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
|
echo "STAGE=prd" >> $GITHUB_ENV
|
|
echo "::set-output name=stage::prd"
|
|
else
|
|
echo "STAGE=dev" >> $GITHUB_ENV
|
|
echo "::set-output name=stage::dev"
|
|
fi
|
|
- name: Use output
|
|
run: echo "The stage is ${{ steps.set-env.outputs.stage }}"
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
role-to-assume: ${{ env.AWS_ROLE_DEV_CICD }}
|
|
aws-region: eu-west-1
|
|
- name: Create Docker image and push to ECR
|
|
uses: ./.github/actions/image_builder
|
|
id: generate-promethai-docker
|
|
with:
|
|
stage: dev
|
|
aws_account_id: ${{ env.AWS_ACCOUNT_ID_DEV }}
|
|
should_publish: true
|
|
ecr_image_repo_name: promethai-dev-backend-promethai-backend
|
|
dockerfile_location: ./
|
|
- name: Export Docker image tag
|
|
id: export-promethai-docker-tag
|
|
run: |
|
|
export DOCKER_TAG=$(cat /tmp/.DOCKER_IMAGE_VERSION)
|
|
echo "Docker tag is: $DOCKER_TAG"
|
|
echo "promethai_docker_tag_backend=$DOCKER_TAG" >> $GITHUB_OUTPUT
|
|
outputs:
|
|
promethai_docker_tag_backend: ${{ steps.export-promethai-docker-tag.outputs.promethai_docker_tag_backend }}
|
|
|
|
apply_tf:
|
|
name: Trigger terraform apply workflow
|
|
runs-on: ubuntu-latest
|
|
needs: publish_docker_to_ecr
|
|
steps:
|
|
- name: TF apply workflow triggers step
|
|
uses: actions/github-script@v6
|
|
with:
|
|
github-token: ${{ secrets.PAT_FOR_CROSS_REPOS_CICD_TRIGGERING }}
|
|
script: |
|
|
await github.rest.actions.createWorkflowDispatch({
|
|
owner: 'topoteretes',
|
|
repo: 'PromethAI-Infra',
|
|
workflow_id: 'terraform.apply.yml',
|
|
ref: 'main'
|
|
})
|