Skip to content

Commit d0bc528

Browse files
authored
Revert "Group workflows by trigger type and initial commit for the integratio…" (#653)
This reverts commit 9f20ec0.
1 parent b78c6d9 commit d0bc528

15 files changed

+40
-393
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# This workflow builds, tests and lints the project
2-
name: Build, Test & Lint
1+
name: CI
32

43
on:
5-
workflow_call:
6-
workflow_dispatch:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
78

89
jobs:
910
test:
10-
name: Run
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:

.github/workflows/image-build.yml

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,29 @@
1-
# This workflow build (but does not push) the OCI image
2-
name: OCI Image - Build
3-
1+
# Attempt to build (but not push) the Docker image on Pull Requests
2+
name: Image build
43
on:
5-
workflow_call:
6-
inputs:
7-
artifact-name:
8-
description: 'The name of the artifact to upload'
9-
required: true
10-
type: string
11-
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
- "docs/**"
10+
- "static/**"
11+
- "LICENSE"
1212
permissions:
1313
contents: read
14-
1514
jobs:
1615
docker-image:
1716
name: Check docker image build
1817
runs-on: ubuntu-latest
19-
env:
20-
IMAGE_NAME: stacklok/codegate
21-
IMAGE_TAG: dev
2218
steps:
2319
- name: Checkout
2420
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2521
- name: Set up Docker Buildx
2622
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
27-
- name: Download artifact
28-
id: download-artifact
29-
uses: dawidd6/action-download-artifact@80620a5d27ce0ae443b965134db88467fc607b43 # v7
30-
with:
31-
github_token: ${{ github.token }}
32-
workflow: ".github/workflows/import_packages.yml"
33-
workflow_conclusion: success
34-
name: sqlite_data
35-
name_is_regexp: true
36-
skip_unpack: false
37-
if_no_artifact_found: ignore
3823
- name: Fetch latest release URL
3924
id: fetch_release_url
4025
run: |
4126
echo "LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | jq -r '.zipball_url')" >> $GITHUB_ENV
42-
- name: Download git lfs dependencies
43-
run: |
44-
git lfs install
45-
git lfs pull
4627
- name: Test build on x86
4728
id: docker_build
4829
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d # v5
@@ -56,15 +37,3 @@ jobs:
5637
cache-to: type=gha,mode=max
5738
build-args: |
5839
LATEST_RELEASE=${{ env.LATEST_RELEASE }}
59-
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
60-
- name: Save Docker image as a tarball
61-
run: |
62-
# List all images
63-
docker images
64-
# Save the image as a tarball
65-
docker save -o image.tar ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
66-
- name: Upload Docker image artifact
67-
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
68-
with:
69-
name: ${{ inputs.artifact-name }}
70-
path: image.tar

.github/workflows/image-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# This workflow builds and publishes the OCI image
2-
name: OCI Image - Publish
3-
1+
name: Publish Docker Image
42
on:
5-
workflow_call:
3+
release:
4+
types:
5+
- published
66
workflow_dispatch:
77

88
jobs:

.github/workflows/import_packages.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This workflow syncs the vector database
21
name: Sync vector DB
32

43
on:

.github/workflows/integration-tests.yml

Lines changed: 0 additions & 141 deletions
This file was deleted.

.github/workflows/openapi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# This workflow generates the OpenAPI docs
21
name: Generate OpenAPI Documentation
32

43
on:
5-
workflow_call:
64
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
78

89
jobs:
910
generate_openapi:

.github/workflows/run-on-pr.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/run-on-push.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/run-on-release-published.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/security.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
name: Security
22

33
on:
4-
workflow_call:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
58
schedule:
69
- cron: '0 0 * * *'
710

811
jobs:
912
dependencies:
1013
runs-on: ubuntu-latest
11-
name: Dependencies & Secrets Scan via Trivy
14+
name: Dependencies & Secrets Scan
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<img alt="CodeGate logo" src="./static/codegate-logo-dark.svg" width="800px" style="max-width: 100%;">
44
</picture>
55

6-
---
7-
[![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)
6+
[![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)
87

9-
---
108
## Introduction
119

1210
<img src="./assets/codegate.gif" style="width: 70%; height: 70%;" />
Binary file not shown.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy