88 lines
2.7 KiB
YAML
88 lines
2.7 KiB
YAML
name: Docker Build and Release Upload
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
# Build ComfyUI-Cuda
|
|
build-cuda:
|
|
runs-on: alpine-linux
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to registry
|
|
run: |
|
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
|
podman login docker.mistox.net \
|
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
|
--password-stdin
|
|
|
|
- name: Get Upstream Commit SHA
|
|
id: get-sha
|
|
run: |
|
|
SHA=$(curl -s https://api.github.com/repos/comfy-org/comfyui/commits?sha=master&per_page=1 | jq -r '.sha')
|
|
echo "sha=$SHA" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and Push ComfyUI-Cuda
|
|
run: |
|
|
podman build \
|
|
-t docker.mistox.net/derek/comfyui-cuda-ampere:latest \
|
|
-f ${{ github.workspace }}/comfyui-cuda-dockerfile \
|
|
--build-arg gitversion=${{ steps.get-sha.outputs.sha }} \
|
|
${{ github.workspace }}
|
|
podman push docker.mistox.net/derek/comfyui-cuda-ampere:latest
|
|
|
|
# Build ComfyUI-Rocm
|
|
build-rocm:
|
|
runs-on: alpine-linux
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to registry
|
|
run: |
|
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
|
podman login docker.mistox.net \
|
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
|
--password-stdin
|
|
|
|
- name: Build and Push ComfyUI-Vulkan
|
|
run: |
|
|
podman build \
|
|
-t docker.mistox.net/derek/comfyui-vulkan-ampere:latest \
|
|
-f ${{ github.workspace }}/comfyui-vulkan-dockerfile \
|
|
${{ github.workspace }}
|
|
podman push docker.mistox.net/derek/comfyui-vulkan-ampere:latest
|
|
|
|
# Job 3: Uvicorn Build
|
|
build-uvicorn:
|
|
runs-on: alpine-linux
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to registry
|
|
run: |
|
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
|
podman login docker.mistox.net \
|
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
|
--password-stdin
|
|
|
|
- name: Get Upstream Commit SHA
|
|
id: get-sha
|
|
run: |
|
|
SHA=$(curl -s https://api.github.com/repos/mythrantic/ollama-docker/commits/main | jq -r '.sha')
|
|
echo "sha=$SHA" >> $GITHUB_OUTPUT
|
|
|
|
- name: Build and Push Uvicorn
|
|
run: |
|
|
podman build \
|
|
-t docker.mistox.net/derek/uvicorn-ampere:latest \
|
|
-f ${{ github.workspace }}/uvicorn-dockerfile \
|
|
--build-arg gitversion=${{ steps.get-sha.outputs.sha }} \
|
|
${{ github.workspace }}
|
|
podman push docker.mistox.net/derek/uvicorn-ampere:latest |