mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
fix build bug
This commit is contained in:
parent
e2b8d56619
commit
997cec61dd
7
.github/workflows/dockerToHub.yml
vendored
7
.github/workflows/dockerToHub.yml
vendored
@ -28,10 +28,6 @@ jobs:
|
|||||||
echo ${{ secrets.ALY_DOCKER_PASSWORD }} | docker login registry.cn-hangzhou.aliyuncs.com -u ${{ secrets.ALY_DOCKER_USERNAME }} --password-stdin
|
echo ${{ secrets.ALY_DOCKER_PASSWORD }} | docker login registry.cn-hangzhou.aliyuncs.com -u ${{ secrets.ALY_DOCKER_USERNAME }} --password-stdin
|
||||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login registry.gitlab.si.icu -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
echo ${{ secrets.DOCKER_PASSWORD }} | docker login registry.gitlab.si.icu -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
echo "${{ secrets.DOCKER_ENV }}" > .env
|
echo "${{ secrets.DOCKER_ENV }}" > .env
|
||||||
#bash ./start.sh
|
|
||||||
#docker-compose build
|
|
||||||
#docker-compose push
|
|
||||||
#yes | docker system prune --filter "until=168h"
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
@ -42,6 +38,9 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:latest
|
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:latest
|
||||||
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:${{ env.DATE_TAG }}
|
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:${{ env.DATE_TAG }}
|
||||||
|
- name: clean build history
|
||||||
|
run: |
|
||||||
|
yes | docker system prune --filter "until=720h"
|
||||||
# download-repo:
|
# download-repo:
|
||||||
# name: 下载仓库
|
# name: 下载仓库
|
||||||
# needs: build
|
# needs: build
|
||||||
|
@ -13,6 +13,8 @@ ENV TZ=Asia/Chongqing
|
|||||||
# 更新并安装时区工具
|
# 更新并安装时区工具
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma
|
||||||
|
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
|
Loading…
Reference in New Issue
Block a user