mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-14 14:11:23 +00:00
Update docker-image-new.yml
This commit is contained in:
6
.github/workflows/docker-image-new.yml
vendored
6
.github/workflows/docker-image-new.yml
vendored
@@ -17,18 +17,18 @@ jobs:
|
||||
|
||||
# 设置 Docker Buildx
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v1.6.0
|
||||
|
||||
# 登录 Docker Hub (如果需要推送镜像)
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v1.10.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
# 构建并推送镜像
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v2.7.0
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfiles/Dockerfile.native
|
||||
|
Reference in New Issue
Block a user