From c8b4f4c09129050bcfc6f758841bcbc6f8dcc940 Mon Sep 17 00:00:00 2001 From: xuthus Date: Sat, 6 Jul 2024 23:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 6 +++++- Dockerfile.build | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9bed9aad..5b2db66d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -19,6 +19,10 @@ jobs: run: npm install --unsafe-perm - name: Build with Npm create-release run: npm run create-release -- --skip-opt-packages=ffmpeg-static,ffprobe-static --force-opt-packages + - uses: actions/upload-artifact@v4 + with: + name: pigallery2-release + path: release - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v3 @@ -27,7 +31,7 @@ jobs: id: docker_build uses: docker/build-push-action@v5 with: - context: ./ + context: . file: Dockerfile.build push: true tags: k2.xuthus83.cn:6001/pigallery2:latest diff --git a/Dockerfile.build b/Dockerfile.build index 917e1c87..e2eb0296 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -3,7 +3,7 @@ FROM node:18-alpine3.17 AS builder RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \ python3 build-base sqlite-dev sqlite-libs vips-dev fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python -COPY release /app +COPY pigallery2-release /app WORKDIR /app RUN npm install --unsafe-perm RUN mkdir -p /app/data/config && \