mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-14 22:27:21 +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
|
# 设置 Docker Buildx
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1.6.0
|
||||||
|
|
||||||
# 登录 Docker Hub (如果需要推送镜像)
|
# 登录 Docker Hub (如果需要推送镜像)
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
# 构建并推送镜像
|
# 构建并推送镜像
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2.7.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfiles/Dockerfile.native
|
file: Dockerfiles/Dockerfile.native
|
||||||
|
Reference in New Issue
Block a user