mirror of
https://github.com/eryajf/chatgpt-dingtalk.git
synced 2026-04-22 23:47:15 +08:00
doc: 说明文档中更改镜像为阿里仓库,解决拉取镜像难的问题 (#261)
This commit is contained in:
@@ -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: .
|
||||
|
||||
Reference in New Issue
Block a user