Update runners for cache invalidation
This commit is contained in:
1 parent
c971ecf1df
commit
0356be1113
1 file changed
+62
-48
+62
-48
@@ -14,23 +14,36 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Log in to registry
|
||||||
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-cuda
|
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
||||||
--platform=linux/arm64 \
|
podman login docker.mistox.net \
|
||||||
-t mistox/comfyui-cuda-ampere:latest \
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
||||||
-f comfyui-cuda-dockerfile \
|
--password-stdin
|
||||||
--push \
|
|
||||||
.
|
- name: Get Upstream Commit SHA
|
||||||
|
id: get-sha
|
||||||
|
run: |
|
||||||
|
SHA=$(curl -sSL \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
"https://api.github.com/repos/comfy-org/comfyui/commits?sha=master&per_page=1" \
|
||||||
|
| jq -r '.[0].sha')
|
||||||
|
echo "sha=$SHA" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- 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 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 ComfyUI-Rocm
|
||||||
build-rocm:
|
build-rocm:
|
||||||
@@ -39,23 +52,20 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Log in to registry
|
||||||
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 \
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
||||||
--platform=linux/arm64 \
|
podman login docker.mistox.net \
|
||||||
-t mistox/comfyui-rocm-ampere:latest \
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
||||||
-f comfyui-rocm-dockerfile \
|
--password-stdin
|
||||||
--push \
|
|
||||||
.
|
- name: Build and Push ComfyUI-Rocm
|
||||||
|
run: |
|
||||||
|
podman build \
|
||||||
|
-t docker.mistox.net/derek/comfyui-rocm-ampere:latest \
|
||||||
|
-f ${{ github.workspace }}/comfyui-rocm-dockerfile \
|
||||||
|
${{ github.workspace }}
|
||||||
|
podman push docker.mistox.net/derek/comfyui-rocm-ampere:latest
|
||||||
|
|
||||||
# Job 3: Uvicorn Build
|
# Job 3: Uvicorn Build
|
||||||
build-uvicorn:
|
build-uvicorn:
|
||||||
@@ -64,20 +74,24 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Log in to registry
|
||||||
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 \
|
printf '%s' '${{ secrets.DOCKERHUB_TOKEN }}' |
|
||||||
--platform=linux/arm64 \
|
podman login docker.mistox.net \
|
||||||
-t mistox/uvicorn-ampere:latest \
|
--username '${{ secrets.DOCKERHUB_USERNAME }}' \
|
||||||
-f uvicorn-dockerfile \
|
--password-stdin
|
||||||
--push \
|
|
||||||
.
|
- 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
|
||||||
Reference in new issue
Block a user