Skip to content

Commit 42110df

Browse files
committed
{nightly} CI use remote image
Local storage is just not enough
1 parent cfd5fc5 commit 42110df

File tree

2 files changed

+41
-17
lines changed

2 files changed

+41
-17
lines changed

.github/workflows/build-nightly.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish & Test 'nightly'
1+
name: Publish 'nightly' to Docker Hub
22

33
on:
44
workflow_dispatch: # Can be manually triggered
@@ -63,19 +63,3 @@ jobs:
6363
yanwk/comfyui-boot:nightly
6464
yanwk/comfyui-boot:nightly-${{ steps.date.outputs.date }}-${{ steps.commit.outputs.short }}
6565
push: true
66-
# Load to local Docker repository so it can be used by `docker run` below.
67-
load: true
68-
69-
- name: Run container - List env vars
70-
run: |
71-
docker run --rm \
72-
--name show-env \
73-
yanwk/comfyui-boot:nightly \
74-
env
75-
76-
- name: Run container - Quick-Test
77-
run: |
78-
docker run --rm \
79-
--name comfyui-quick-test \
80-
-e CLI_ARGS="--quick-test-for-ci --cpu" \
81-
yanwk/comfyui-boot:nightly
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test 'nightly' from Docker Hub
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_run:
6+
workflows: ["Publish 'nightly' to Docker Hub"]
7+
types:
8+
- completed
9+
10+
jobs:
11+
test-image-nightly:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Maximize build disk space
15+
uses: easimon/maximize-build-space@master
16+
with:
17+
overprovision-lvm: 'true'
18+
remove-android: 'true'
19+
remove-dotnet: 'true'
20+
remove-haskell: 'true'
21+
remove-codeql: 'true'
22+
remove-docker-images: 'true'
23+
swap-size-mb: 512
24+
25+
- name: Pull image from Docker Hub
26+
run: docker pull docker.io/yanwk/comfyui-boot:nightly
27+
28+
- name: Show container environment variables
29+
run: |
30+
docker run --rm \
31+
--name show-env \
32+
docker.io/yanwk/comfyui-boot:nightly \
33+
env
34+
35+
- name: Run container with quick-test
36+
run: |
37+
docker run --rm \
38+
--name comfyui-quick-test \
39+
-e CLI_ARGS="--quick-test-for-ci --cpu" \
40+
docker.io/yanwk/comfyui-boot:nightly

0 commit comments

Comments
 (0)