mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2025-11-03 10:30:49 +08:00
doc: 说明文档中更改镜像为阿里仓库,解决拉取镜像难的问题 (#261)
This commit is contained in:
24
.github/workflows/docker-image.yml
vendored
24
.github/workflows/docker-image.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
- name: Build and push to DockerHub
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
@@ -61,33 +61,15 @@ jobs:
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:${{ env.GITHUB_REF_NAME }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:latest
|
||||
|
||||
# 镜像推送到 ghcr
|
||||
# - name: Login to the GitHub Container Registry
|
||||
# uses: docker/login-action@v2
|
||||
# with:
|
||||
# registry: ghcr.io
|
||||
# username: ${{ github.actor }}
|
||||
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# - name: Build and push image:latest
|
||||
# uses: docker/build-push-action@v3
|
||||
# with:
|
||||
# context: .
|
||||
# push: true
|
||||
# platforms: linux/amd64,linux/arm64
|
||||
# tags: |
|
||||
# ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:${{ env.GITHUB_REF_NAME }}
|
||||
# ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:latest
|
||||
|
||||
# 镜像推送到 阿里云仓库
|
||||
- name: Login to the GitHub Container Registry
|
||||
- name: Login to the Ali Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: registry.cn-hangzhou.aliyuncs.com
|
||||
username: ${{ secrets.ALIHUB_USERNAME }}
|
||||
password: ${{ secrets.ALIHUB_TOKEN }}
|
||||
|
||||
- name: Build and push image:latest
|
||||
- name: Build and push to Ali
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: .
|
||||
|
||||
@@ -199,7 +199,7 @@ $ docker run -itd --name chatgpt -p 8090:8090 \
|
||||
-e DINGTALK_CREDENTIALS="your_client_id1:secret1,your_client_id2:secret2" \
|
||||
-e HELP="欢迎使用本工具\n\n你可以查看:[用户指南](https://github.com/eryajf/chatgpt-dingtalk/blob/main/docs/userGuide.md)\n\n这是一个[开源项目](https://github.com/eryajf/chatgpt-dingtalk/)
|
||||
,觉得不错你可以来波素质三连." \
|
||||
--restart=always dockerproxy.com/eryajf/chatgpt-dingtalk:latest
|
||||
--restart=always registry.cn-hangzhou.aliyuncs.com/ali_eryajf/chatgpt-dingtalk
|
||||
```
|
||||
|
||||
> 运行命令中映射的配置文件参考下边的[配置文件说明](#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E)。
|
||||
@@ -216,7 +216,7 @@ $ docker run -itd --name chatgpt -p 8090:8090 \
|
||||
$ cp config.example.yml config.yml # 其中 config.example.yml 从项目的根目录获取
|
||||
|
||||
# 运行项目
|
||||
$ docker run -itd --name chatgpt -p 8090:8090 -v `pwd`/config.yml:/app/config.yml --restart=always dockerproxy.com/eryajf/chatgpt-dingtalk:latest
|
||||
$ docker run -itd --name chatgpt -p 8090:8090 -v `pwd`/config.yml:/app/config.yml --restart=always registry.cn-hangzhou.aliyuncs.com/ali_eryajf/chatgpt-dingtalk
|
||||
```
|
||||
|
||||
其中配置文件参考下边的配置文件说明。
|
||||
|
||||
@@ -3,7 +3,7 @@ version: '3'
|
||||
services:
|
||||
chatgpt:
|
||||
container_name: chatgpt
|
||||
image: eryajf/chatgpt-dingtalk:latest
|
||||
image: registry.cn-hangzhou.aliyuncs.com/ali_eryajf/chatgpt-dingtalk
|
||||
restart: always
|
||||
environment:
|
||||
LOG_LEVEL: "info" # 应用的日志级别 info/debug
|
||||
|
||||
Reference in New Issue
Block a user