chore: remove GitHub workflows for service build and release (#425)
Remove GitHub Actions workflows for building and releasing service images
This commit is contained in:
parent
8b19771d86
commit
3f2ce765fe
2 changed files with 0 additions and 105 deletions
46
.github/workflows/build-and-start-svc.yml
vendored
46
.github/workflows/build-and-start-svc.yml
vendored
|
|
@ -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
|
||||
59
.github/workflows/release-service-image.yml
vendored
59
.github/workflows/release-service-image.yml
vendored
|
|
@ -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 }}
|
||||
Loading…
Add table
Reference in a new issue