Skip to content

Updating lizard parser to store output for each file #113

Updating lizard parser to store output for each file

Updating lizard parser to store output for each file #113

Workflow file for this run

name: Build and push Docker image
on:
push:
branches:
- main
- "[Ss][Qq]-*"
tags:
- v*
jobs:
push:
runs-on: ubuntu-latest-m
permissions:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: agent
- name: Checkout backend-core
uses: actions/checkout@v4
with:
repository: Semalab/backend-core
token: ${{ secrets.GH_PAT }}
path: backend-core
- name: Checkout backend-activitypersistence
uses: actions/checkout@v4
with:
repository: Semalab/backend-activitypersistence
token: ${{ secrets.GH_PAT }}
path: backend-activitypersistence
- name: Checkout backend-commitanalysis
uses: actions/checkout@v4
with:
repository: Semalab/backend-commitanalysis
token: ${{ secrets.GH_PAT }}
path: backend-commitanalysis
- name: Checkout backend-gitblame
uses: actions/checkout@v4
with:
repository: Semalab/backend-gitblame
token: ${{ secrets.GH_PAT }}
path: backend-gitblame
- name: Checkout ai_engine
uses: actions/checkout@v4
with:
repository: Semalab/ai_engine
token: ${{ secrets.GH_PAT }}
path: ai_engine
submodules: true
- name: Checkout corresponding branches
run: |
for repo in backend-core backend-activitypersistence backend-commitanalysis backend-gitblame ai_engine; do
pushd $repo
if git ls-remote --exit-code --heads origin ${{ github.ref_name }}; then
git fetch origin ${{ github.ref_name }}
git switch --discard-changes ${{ github.ref_name }}
else
echo "Staying on default branch as ${{ github.ref_name }} does not exist in $repo"
fi
popd
done
- name: Build JARs
working-directory: agent
run: make build-jars
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Prepare AI Engine
working-directory: agent
run: make out/ai_engine.tar.gz ai-engine-models
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=semver,pattern={{version}}
- name: Build and export to Docker
id: build
uses: docker/build-push-action@v5
with:
context: agent
file: agent/docker/Dockerfile
load: true