mirror of
https://github.com/open-webui/open-webui
synced 2025-04-02 12:09:06 +00:00
Merge pull request #2 from 8451LLC/feature/enable-gh-actions
Changes to enable GitHub Actions
This commit is contained in:
commit
ad49a1b1fc
13
.8451/metadata.yml
Normal file
13
.8451/metadata.yml
Normal 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
10
.github/CODEOWNERS.md
vendored
Normal 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
|
10
.github/workflows/build-release.yml
vendored
10
.github/workflows/build-release.yml
vendored
@ -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
|
||||
|
2
.github/workflows/codespell.disabled
vendored
2
.github/workflows/codespell.disabled
vendored
@ -14,7 +14,7 @@ permissions:
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
15
.github/workflows/deploy-to-hf-spaces.yml
vendored
15
.github/workflows/deploy-to-hf-spaces.yml
vendored
@ -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:
|
||||
|
29
.github/workflows/docker-build.yaml
vendored
29
.github/workflows/docker-build.yaml
vendored
@ -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
|
||||
|
20
.github/workflows/format-backend.yaml
vendored
20
.github/workflows/format-backend.yaml
vendored
@ -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:
|
||||
|
22
.github/workflows/format-build-frontend.yaml
vendored
22
.github/workflows/format-build-frontend.yaml
vendored
@ -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
|
||||
|
6
.github/workflows/integration-test.disabled
vendored
6
.github/workflows/integration-test.disabled
vendored
@ -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
|
||||
|
2
.github/workflows/lint-backend.disabled
vendored
2
.github/workflows/lint-backend.disabled
vendored
@ -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:
|
||||
|
2
.github/workflows/lint-frontend.disabled
vendored
2
.github/workflows/lint-frontend.disabled
vendored
@ -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
|
||||
|
2
.github/workflows/release-pypi.yml
vendored
2
.github/workflows/release-pypi.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user