|
@@ -77,4 +77,22 @@ jobs:
|
|
|
# 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
|
|
|
+ # ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/chatgpt-dingtalk:latest
|
|
|
+
|
|
|
+ # 镜像推送到 阿里云仓库
|
|
|
+ - name: Login to the GitHub Container 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
|
|
|
+ uses: docker/build-push-action@v3
|
|
|
+ with:
|
|
|
+ context: .
|
|
|
+ push: true
|
|
|
+ platforms: linux/amd64,linux/arm64
|
|
|
+ tags: |
|
|
|
+ registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALIHUB_USERNAME }}/chatgpt-dingtalk:${{ env.GITHUB_REF_NAME }}
|
|
|
+ registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALIHUB_USERNAME }}/chatgpt-dingtalk:latest
|