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 && \