mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 21:40:15 +09:00
feat: support arm64 in stable image
This commit is contained in:
parent
c4d330947d
commit
a72ea845b2
14
.github/workflows/docker-cd.yaml
vendored
14
.github/workflows/docker-cd.yaml
vendored
@ -19,8 +19,14 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build the Docker image
|
- name: Set up Docker Buildx
|
||||||
run: docker build . --file Dockerfile --tag programzmh/chatnio:stable
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Push to DockerHub
|
- name: Build and push Docker images
|
||||||
run: docker push programzmh/chatnio:stable
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: programzmh/chatnio:stable
|
||||||
|
@ -167,7 +167,7 @@ func ExtractUrls(data string) []string {
|
|||||||
func ExtractImageUrls(data string) []string {
|
func ExtractImageUrls(data string) []string {
|
||||||
// https://platform.openai.com/docs/guides/vision/what-type-of-files-can-i-upload
|
// https://platform.openai.com/docs/guides/vision/what-type-of-files-can-i-upload
|
||||||
|
|
||||||
re := regexp.MustCompile(`(https?://\S+\.(?:png|jpg|jpeg|gif|webp|heif|heic))`)
|
re := regexp.MustCompile(`(https?://\S+\.(?:png|jpg|jpeg|gif|webp|heif|heic)(?:\s\S+)?)`)
|
||||||
return re.FindAllString(strings.ToLower(data), -1)
|
return re.FindAllString(strings.ToLower(data), -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user