Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accommodate github actions storage limits #25

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/build-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@ jobs:

- name: Build Docker images
working-directory: ./docker
run: |
./build-api-images
run: ./build-api-images

- name: Push Docker images
working-directory: ./docker
run: |
./push-api-images

12 changes: 11 additions & 1 deletion docker/build-api-images
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ for base in "${bases[@]}"; do
--build-arg cuda_version=$cuda_version \
--build-arg api_version=$api_version \
.
done
docker push ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-api$api_version-torch$torch_version-cuda$cuda_version-$base

if [ $base == "runtime" ]; then
docker tag ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-api$api_version-torch$torch_version-cuda$cuda_version-runtime ghcr.io/saladtechnologies/comfyui-api:latest
docker push ghcr.io/saladtechnologies/comfyui-api:latest
docker image rm ghcr.io/saladtechnologies/comfyui-api:latest
fi

# Remove the image to make space for the next one. Github actions runners don't get much storage.
docker image rm ghcr.io/saladtechnologies/comfyui-api:comfy$comfy_version-api$api_version-torch$torch_version-cuda$cuda_version-$base
done
19 changes: 0 additions & 19 deletions docker/push-api-images

This file was deleted.