Skip to content

Commit 8f9a67e

Browse files
fix: use docker-bake instead of having tags in the workflow
1 parent b2e6271 commit 8f9a67e

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ jobs:
6868
regular
6969
rtx5090
7070
set: |
71-
regular.tags=["${{ env.IMAGE_REF }}:${{ env.RELEASE_VERSION }}","${{ env.IMAGE_REF }}:latest"]
72-
rtx5090.tags=["${{ env.IMAGE_REF }}:${{ env.RELEASE_VERSION }}-5090","${{ env.IMAGE_REF }}:latest-5090"]
71+
TAG=${{ env.RELEASE_VERSION }}
7372
7473
- name: Create GitHub Release
7574
uses: softprops/action-gh-release@v1

docker-bake.hcl

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ target "common" {
1515
target "regular" {
1616
inherits = ["common"]
1717
dockerfile = "Dockerfile"
18-
tags = ["runpod/comfyui:${TAG}"]
18+
tags = [
19+
"runpod/comfyui:${TAG}",
20+
"runpod/comfyui:latest",
21+
]
1922
}
2023

2124
# Dev image for local testing
@@ -26,12 +29,28 @@ target "dev" {
2629
output = ["type=docker"]
2730
}
2831

32+
# Dev push targets (for CI pushing dev tags, without overriding latest)
33+
target "devpush" {
34+
inherits = ["common"]
35+
dockerfile = "Dockerfile"
36+
tags = ["runpod/comfyui:dev"]
37+
}
38+
39+
target "devpush5090" {
40+
inherits = ["common"]
41+
dockerfile = "Dockerfile.5090"
42+
tags = ["runpod/comfyui:dev-5090"]
43+
}
44+
2945
# RTX 5090 optimized image (CUDA 12.8 + latest PyTorch build)
3046
target "rtx5090" {
3147
inherits = ["common"]
3248
dockerfile = "Dockerfile.5090"
3349
args = {
3450
START_SCRIPT = "start.5090.sh"
3551
}
36-
tags = ["runpod/comfyui:${TAG}-5090"]
52+
tags = [
53+
"runpod/comfyui:${TAG}-5090",
54+
"runpod/comfyui:latest-5090",
55+
]
3756
}

0 commit comments

Comments
 (0)