feat: Return CI test for docker build (#977)

<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Igor Ilic 2025-06-12 12:10:21 +02:00 committed by GitHub
parent 645e939b72
commit 23c9a77ea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,26 @@
name: build test | Docker image
on:
workflow_call:
env:
AWS_ACCOUNT_ID_DEV: "463722570299"
jobs:
build_docker:
name: Build Cognee Backend Docker App Image
runs-on: ubuntu-22.04
steps:
- name: Check out Cognee code
uses: actions/checkout@v4
- name: Build Cognee Docker image
id: cognee-docker-tag
run: |
export SHA_SHORT="$(git rev-parse --short HEAD)"
export CUR_DATE="$(date +%Y%m%d%H%M%S)"
export VERSION="dev-$CUR_DATE-$SHA_SHORT"
image_name="cognee" docker_login="false" version="$VERSION" account="${{ env.AWS_ACCOUNT_ID_DEV }}" app_dir="." publish="false" ./bin/dockerize
export DOCKER_TAG=$(cat /tmp/.DOCKER_IMAGE_VERSION)
echo "Successfully built cognee Docker image. Tag is: $DOCKER_TAG"

View file

@ -36,7 +36,7 @@ jobs:
docker-ci-test:
name: Docker CI test
needs: [basic-tests, e2e-tests]
uses: ./.github/workflows/ci.yaml
uses: ./.github/workflows/backend_docker_build_test.yml
secrets: inherit
graph-db-tests: