Skip to content

Commit

Permalink
Revert "Group workflows by trigger type and initial commit for the in…
Browse files Browse the repository at this point in the history
…tegratio…" (#653)

This reverts commit 9f20ec0.
  • Loading branch information
rdimitrov authored Jan 20, 2025
1 parent b78c6d9 commit d0bc528
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 393 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow builds, tests and lints the project
name: Build, Test & Lint
name: CI

on:
workflow_call:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
name: Run
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
51 changes: 10 additions & 41 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,29 @@
# This workflow build (but does not push) the OCI image
name: OCI Image - Build

# Attempt to build (but not push) the Docker image on Pull Requests
name: Image build
on:
workflow_call:
inputs:
artifact-name:
description: 'The name of the artifact to upload'
required: true
type: string

pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "docs/**"
- "static/**"
- "LICENSE"
permissions:
contents: read

jobs:
docker-image:
name: Check docker image build
runs-on: ubuntu-latest
env:
IMAGE_NAME: stacklok/codegate
IMAGE_TAG: dev
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
with:
github_token: ${{ github.token }}
workflow: ".github/workflows/import_packages.yml"
workflow_conclusion: success
name: sqlite_data
name_is_regexp: true
skip_unpack: false
if_no_artifact_found: ignore
- name: Fetch latest release URL
id: fetch_release_url
run: |
echo "LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | jq -r '.zipball_url')" >> $GITHUB_ENV
- name: Download git lfs dependencies
run: |
git lfs install
git lfs pull
- name: Test build on x86
id: docker_build
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d # v5
Expand All @@ -56,15 +37,3 @@ jobs:
cache-to: type=gha,mode=max
build-args: |
LATEST_RELEASE=${{ env.LATEST_RELEASE }}
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
- name: Save Docker image as a tarball
run: |
# List all images
docker images
# Save the image as a tarball
docker save -o image.tar ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
- name: Upload Docker image artifact
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: ${{ inputs.artifact-name }}
path: image.tar
8 changes: 4 additions & 4 deletions .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This workflow builds and publishes the OCI image
name: OCI Image - Publish

name: Publish Docker Image
on:
workflow_call:
release:
types:
- published
workflow_dispatch:

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/import_packages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This workflow syncs the vector database
name: Sync vector DB

on:
Expand Down
141 changes: 0 additions & 141 deletions .github/workflows/integration-tests.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# This workflow generates the OpenAPI docs
name: Generate OpenAPI Documentation

on:
workflow_call:
workflow_dispatch:
push:
branches:
- main

jobs:
generate_openapi:
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/run-on-pr.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/run-on-push.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/run-on-release-published.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: Security

on:
workflow_call:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'

jobs:
dependencies:
runs-on: ubuntu-latest
name: Dependencies & Secrets Scan via Trivy
name: Dependencies & Secrets Scan
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
<img alt="CodeGate logo" src="./static/codegate-logo-dark.svg" width="800px" style="max-width: 100%;">
</picture>

---
[![CI](https://github.com/stacklok/codegate/actions/workflows/run-on-push.yml/badge.svg)](https://github.com/stacklok/codegate/actions/workflows/run-on-push.yml) | [![License: Apache 2.0](https://img.shields.io/badge/License-Apache2.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0) | [![](https://dcbadge.vercel.app/api/server/RkzVuTp3WK?logo=discord&label=Discord&color=5865&style=flat)](https://discord.gg/RkzVuTp3WK)
[![CI](https://github.com/stacklok/codegate/actions/workflows/ci.yml/badge.svg)](https://github.com/stacklok/codegate/actions/workflows/ci.yml) | [![](https://dcbadge.vercel.app/api/server/RkzVuTp3WK?logo=discord&label=Discord&color=5865&style=flat)](https://discord.gg/RkzVuTp3WK)

---
## Introduction

<img src="./assets/codegate.gif" style="width: 70%; height: 70%;" />
Expand Down
Binary file modified codegate_volume/models/all-minilm-L6-v2-q5_k_m.gguf
Binary file not shown.
Loading

0 comments on commit d0bc528

Please sign in to comment.