Merge pull request #2 from 8451LLC/feature/enable-gh-actions

Changes to enable GitHub Actions
This commit is contained in:
Matt Wiley 2025-03-31 11:57:16 -04:00 committed by GitHub
commit ad49a1b1fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 77 additions and 56 deletions

13
.8451/metadata.yml Normal file
View File

@ -0,0 +1,13 @@
profit_stream: ai_enablement
product: openwebui
capability: ai_acceleration
component: aia_openwebui
business_domain: ai_acceleration
team: GenAI Studio Frontend
contacts:
team:
- GenAIStudio@8451.com
technical:
- matt.wiley@8451.com
product:
- katie.wright@8451.com

10
.github/CODEOWNERS.md vendored Normal file
View File

@ -0,0 +1,10 @@
# ------------------------------------------------------------------------------------------
# Below is the minimum CODEOWNERS file that shoul dbe used on 84.51º projects.
#
# Read GitHub' Documentation on CODEOWNERS for more information:
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
# ------------------------------------------------------------------------------------------
# Default owners for everything in repo
* @mattwiley-8451
* @philipkaufholz-8451

View File

@ -1,13 +1,13 @@
name: Release
on:
push:
branches:
- main # or whatever branch you want to use
on: workflow_dispatch
# push:
# branches:
# - main # or whatever branch you want to use
jobs:
release:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository

View File

@ -14,7 +14,7 @@ permissions:
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout

View File

@ -1,15 +1,14 @@
name: Deploy to HuggingFace Spaces
on:
push:
branches:
- dev
- main
workflow_dispatch:
on: workflow_dispatch
# push:
# branches:
# - dev
# - main
jobs:
check-secret:
runs-on: ubuntu-latest
runs-on: self-hosted
outputs:
token-set: ${{ steps.check-key.outputs.defined }}
steps:
@ -20,7 +19,7 @@ jobs:
run: echo "defined=true" >> $GITHUB_OUTPUT
deploy:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [check-secret]
if: needs.check-secret.outputs.token-set == 'true'
env:

View File

@ -1,20 +1,19 @@
name: Create and publish Docker images with specific build args
on:
workflow_dispatch:
push:
branches:
- main
- dev
tags:
- v*
on: workflow_dispatch
# push:
# branches:
# - main
# - dev
# tags:
# - v*
env:
REGISTRY: ghcr.io
jobs:
build-main-image:
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
runs-on: self-hosted
permissions:
contents: read
packages: write
@ -23,7 +22,7 @@ jobs:
matrix:
platform:
- linux/amd64
- linux/arm64
# - linux/arm64
steps:
# GitHub Packages requires the entire repository name to be in lowercase
@ -111,7 +110,7 @@ jobs:
retention-days: 1
build-cuda-image:
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
runs-on: self-hosted
permissions:
contents: read
packages: write
@ -211,7 +210,7 @@ jobs:
retention-days: 1
build-ollama-image:
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
runs-on: self-hosted
permissions:
contents: read
packages: write
@ -311,7 +310,7 @@ jobs:
retention-days: 1
merge-main-images:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [build-main-image]
steps:
# GitHub Packages requires the entire repository name to be in lowercase
@ -365,7 +364,7 @@ jobs:
docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }}
merge-cuda-images:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [build-cuda-image]
steps:
# GitHub Packages requires the entire repository name to be in lowercase
@ -421,7 +420,7 @@ jobs:
docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }}
merge-ollama-images:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [build-ollama-image]
steps:
# GitHub Packages requires the entire repository name to be in lowercase

View File

@ -1,19 +1,19 @@
name: Python CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
on: workflow_dispatch
# push:
# branches:
# - main
# - dev
# pull_request:
# branches:
# - main
# - dev
jobs:
build:
name: 'Format Backend'
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix:

View File

@ -1,19 +1,19 @@
name: Frontend Build
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
on: workflow_dispatch
# push:
# branches:
# - main
# - dev
# pull_request:
# branches:
# - main
# - dev
jobs:
build:
name: 'Format & Build Frontend'
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v4
@ -40,7 +40,7 @@ jobs:
test-frontend:
name: 'Frontend Unit Tests'
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@v4

View File

@ -13,7 +13,7 @@ on:
jobs:
cypress-run:
name: Run Cypress Integration Tests
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v4.1
@ -82,7 +82,7 @@ jobs:
# pytest:
# name: Run Backend Tests
# runs-on: ubuntu-latest
# runs-on: self-hosted
# steps:
# - uses: actions/checkout@v4
@ -104,7 +104,7 @@ jobs:
migration_test:
name: Run Migration Tests
runs-on: ubuntu-latest
runs-on: self-hosted
services:
postgres:
image: postgres

View File

@ -8,7 +8,7 @@ jobs:
name: 'Lint Backend'
env:
PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix:
node-version:

View File

@ -8,7 +8,7 @@ jobs:
name: 'Lint Frontend'
env:
PUBLIC_API_BASE_URL: ''
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Use Bun

View File

@ -8,7 +8,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
runs-on: self-hosted
environment:
name: pypi
url: https://pypi.org/p/open-webui