diff --git a/.github/workflows/build-and-start-svc.yml b/.github/workflows/build-and-start-svc.yml deleted file mode 100644 index 53fe9a8e..00000000 --- a/.github/workflows/build-and-start-svc.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Build and Start Graphiti Service - -on: - push: - tags: [ 'v*.*.*' ] - workflow_call: -jobs: - build-and-start: - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - env: - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - NEO4J_USER: neo4j - NEO4J_PASSWORD: testpassword - NEO4J_PORT: 7687 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Depot CLI - uses: depot/setup-action@v1 - - - name: Build Graphiti service image with Depot - uses: depot/build-push-action@v1 - with: - context: . - push: false - load: true - tags: graphiti-service:${{ github.sha }} - - - name: Run Docker Compose - run: docker compose -f docker-compose.test.yml up -d --wait - - - name: Check service logs - if: failure() - run: | - echo "Graphiti service logs:" - docker compose -f docker-compose.test.yml logs graph - echo "Neo4j logs:" - docker compose -f docker-compose.test.yml logs neo4j - - - name: Cleanup - if: always() - run: docker compose -f docker-compose.test.yml down \ No newline at end of file diff --git a/.github/workflows/release-service-image.yml b/.github/workflows/release-service-image.yml deleted file mode 100644 index 53c8e3b7..00000000 --- a/.github/workflows/release-service-image.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Build image - -on: - push: - # Publish semver tags as releases. - tags: ["v*.*.*"] - -env: - REGISTRY: docker.io - IMAGE_NAME: zepai/graphiti - -jobs: - build_and_start_svc: - uses: ./.github/workflows/build-and-start-svc.yml - permissions: - contents: read - id-token: write - docker-image: - needs: build_and_start_svc - environment: - name: release - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - steps: - - name: Checkout repo for tag push - uses: actions/checkout@v4 - with: - ref: ${{ github.event.inputs.tag || github.ref }} - - - name: Set up Depot CLI - uses: depot/setup-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@v4.4.0 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - type=match,pattern=v(.*-beta),group=1 - type=match,pattern=v.*-(beta),group=1 - - - name: Depot build and push image - uses: depot/build-push-action@v1 - with: - context: . - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags || env.TAGS }} - labels: ${{ steps.meta.outputs.labels }}