mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 06:40:48 +08:00
Update docker build instructions
This commit is contained in:
parent
b522208e09
commit
6810282be4
14
.github/workflows/docker-build-amd.yml
vendored
14
.github/workflows/docker-build-amd.yml
vendored
@ -26,12 +26,20 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest-rocm,enable={{is_default_branch}}
|
||||||
|
type=sha,prefix=,suffix=-rocm
|
||||||
|
type=semver,pattern={{version}},suffix=-rocm
|
||||||
- name: Build and push ROCm (AMD) image
|
- name: Build and push ROCm (AMD) image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./amd.Dockerfile
|
file: ./amd.Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-rocm
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-rocm
|
|
||||||
19
.github/workflows/docker-build.yml
vendored
19
.github/workflows/docker-build.yml
vendored
@ -31,14 +31,23 @@ jobs:
|
|||||||
registry: nvcr.io
|
registry: nvcr.io
|
||||||
username: "$oauthtoken"
|
username: "$oauthtoken"
|
||||||
password: ${{ secrets.NVCR_NGC_TOKEN }}
|
password: ${{ secrets.NVCR_NGC_TOKEN }}
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
type=raw,value=latest-cuda,enable={{is_default_branch}}
|
||||||
|
type=sha,prefix=
|
||||||
|
type=sha,prefix=,suffix=-cuda
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{version}},suffix=-cuda
|
||||||
- name: Build and push CUDA (NVIDIA) image
|
- name: Build and push CUDA (NVIDIA) image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
|
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-cuda
|
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-cuda
|
|
||||||
Loading…
Reference in New Issue
Block a user