File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 66jobs :
77 build-and-push :
88 runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ packages : write # 必须添加此权限以允许推送到 GHCR
12+
913 steps :
1014 # Checkout the repository
1115 - name : Checkout repository
@@ -15,23 +19,23 @@ jobs:
1519 - name : Set up Docker Buildx
1620 uses : docker/setup-buildx-action@v3
1721
18- # Log in to Docker Hub
19- - name : Log in to Docker Hub
20- if : github.event_name != 'pull_request'
22+ # Login to GitHub Container Registry
23+ - name : Log in to GHCR
2124 uses : docker/login-action@v3
2225 with :
23- username : ${{ secrets.DOCKERHUB_USERNAME }}
24- password : ${{ secrets.DOCKERHUB_TOKEN }}
26+ registry : ghcr.io
27+ username : ${{ github.actor }}
28+ password : ${{ secrets.GITHUB_TOKEN }}
2529
2630 # Build and push Docker image
2731 - name : Build and push Docker image
2832 uses : docker/build-push-action@v5
2933 with :
3034 context : .
3135 push : true
32- provenance : false # Disable provenance if unsupported
36+ provenance : false
3337 tags : |
34- ${{ env.REGISTRY }} /kigland/blender:4.5.3-cuda12.8.1
38+ ghcr.io /kigland/blender:4.5.3-cuda12.8.1
3539 build-args : |
3640 BLENDER_VERSION=4.5.3
3741 UBUNTU_CUDA_VERSION=12.8.1-cudnn-devel-ubuntu24.04
You can’t perform that action at this time.
0 commit comments