-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
leo
committed
Jun 23, 2024
1 parent
8f94431
commit a8b0e54
Showing
4 changed files
with
45 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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: | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.DOCKERHUB_REGISTRY }} | ||
username: ${{ env.DOCKERHUB_USER }} | ||
password: ${{ env.DOCKERHUB_TOKEN }} | ||
- 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: docker buildx build --platform linux/amd64,linux/arm64/v8,linux/arm/v7 -t ${{ env.IMAGE_NAME }}:${{ steps.vars.outputs.tag }} -t ${{ env.IMAGE_NAME }}:latest . --push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
## 更新日志 | ||
|
||
## V4.6.35(2024-06-23) | ||
1、添加阿里云镜像 | ||
|
||
## V4.6.34(2024-06-05) | ||
1、添加聊天内容总结 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters