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 name: Release
on: on: workflow_dispatch
push: # push:
branches: # branches:
- main # or whatever branch you want to use # - main # or whatever branch you want to use
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: self-hosted
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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