Skip to content

fix: 修复coze v3 无法总结群聊 #11

fix: 修复coze v3 无法总结群聊

fix: 修复coze v3 无法总结群聊 #11

name: Ali Docker Image CI
on:
push:
tags:
- 'v*'
# 每次 push tag 时进行构建,不需要每次 push 都构建。使用通配符匹配每次 tag 的提交,记得 tag 名一定要以 v 开头
env:
# 设置 docker 镜像名
DOCKERHUB_USER: ${{ secrets.ALI_DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.ALI_DOCKERHUB_TOKEN }}
DOCKERHUB_REGISTRY: ${{ secrets.ALI_DOCKERHUB_REGISTRY }}
IMAGE_NAME: registry.cn-hangzhou.aliyuncs.com/aibotk/wechat-assistant
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Log into registry
run: echo "${{ env.DOCKERHUB_TOKEN }}" | docker login ${{ env.DOCKERHUB_REGISTRY }} -u ${{ env.DOCKERHUB_USER }} --password-stdin
- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
- name: Set up Docker Buildx
run: docker buildx create --name mybuilder --use
- name: Enable Docker Buildx
run: docker buildx use mybuilder
- name: Build and push
run: ls & docker buildx build . --file Dockerfile --platform linux/amd64,linux/arm64/v8,linux/arm/v7 -t ${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.tag }} -t ${{ env.IMAGE_NAME }}:latest --push