Update runner for faster compiles
This commit is contained in:
+40
-27
@@ -6,44 +6,57 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
|
# Build ComfyUI-Cuda
|
||||||
|
build-cuda:
|
||||||
runs-on: alpine-linux
|
runs-on: alpine-linux
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push ComfyUI CUDA
|
||||||
- name: build and push comfyui-cuda
|
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build --platform linux/arm64 \
|
||||||
--platform=linux/arm64 \
|
-t mistox/comfyui-cuda-ampere:latest \
|
||||||
-t mistox/comfyui-cuda-ampere \
|
-f comfyui-cuda-dockerfile --push .
|
||||||
-f comfyui-cuda-dockerfile \
|
|
||||||
--push \
|
|
||||||
.
|
|
||||||
|
|
||||||
- name: build and push comfyui-rocm
|
# Build ComfyUI-Rocm
|
||||||
|
build-rocm:
|
||||||
|
runs-on: alpine-linux
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Log in to DockerHub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push ComfyUI ROCm
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build --platform linux/arm64 \
|
||||||
--platform=linux/arm64 \
|
-t mistox/comfyui-rocm-ampere:latest \
|
||||||
-t mistox/comfyui-rocm-ampere \
|
-f comfyui-rocm-dockerfile --push .
|
||||||
-f comfyui-rocm-dockerfile \
|
|
||||||
--push \
|
|
||||||
.
|
|
||||||
|
|
||||||
- name: build and push uvicorn
|
# Job 3: Uvicorn Build
|
||||||
|
build-uvicorn:
|
||||||
|
runs-on: alpine-linux
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Log in to DockerHub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push Uvicorn
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build --platform linux/arm64 \
|
||||||
--platform=linux/arm64 \
|
-t mistox/uvicorn-ampere:latest \
|
||||||
-t mistox/uvicorn-ampere \
|
-f uvicorn-dockerfile --push .
|
||||||
-f uvicorn-dockerfile \
|
|
||||||
--push \
|
|
||||||
.
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
services:
|
services:
|
||||||
ollama:
|
ollama:
|
||||||
container_name: ai-ollama
|
container_name: ai-ollama
|
||||||
pull_policy: always
|
|
||||||
tty: true
|
|
||||||
restart: unless-stopped
|
|
||||||
image: docker.io/ollama/ollama:latest
|
image: docker.io/ollama/ollama:latest
|
||||||
|
pull_policy: always
|
||||||
|
restart: unless-stopped
|
||||||
|
tty: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/ollama/ollama:/root/.ollama
|
- ./data/ollama/ollama:/root/.ollama
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -2,13 +2,11 @@ services:
|
|||||||
ollama:
|
ollama:
|
||||||
container_name: ai-ollama
|
container_name: ai-ollama
|
||||||
image: docker.io/ollama/ollama:latest # This is only X86_64 right now. Working on building an image for this on ROCM
|
image: docker.io/ollama/ollama:latest # This is only X86_64 right now. Working on building an image for this on ROCM
|
||||||
restart: unless-stopped
|
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
|
restart: unless-stopped
|
||||||
tty: true
|
tty: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/ollama/ollama:/root/.ollama
|
- ./data/ollama/ollama:/root/.ollama
|
||||||
ports:
|
|
||||||
- 7869:11434
|
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_KEEP_ALIVE=24h
|
- OLLAMA_KEEP_ALIVE=24h
|
||||||
- HSA_OVERRIDE_GFX_VERSION=11.0.0 # This is for the RX 7900XTX
|
- HSA_OVERRIDE_GFX_VERSION=11.0.0 # This is for the RX 7900XTX
|
||||||
@@ -26,7 +24,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8009:8080
|
- 8009:8080
|
||||||
environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models
|
environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models
|
||||||
- OLLAMA_BASE_URLS=http://host.docker.internal:7869
|
- OLLAMA_BASE_URLS=http://ollama:11434
|
||||||
- ENV=prod
|
- ENV=prod
|
||||||
- WEBUI_AUTH=True
|
- WEBUI_AUTH=True
|
||||||
- WEBUI_NAME=Mistox AI
|
- WEBUI_NAME=Mistox AI
|
||||||
|
|||||||
Reference in New Issue
Block a user