use gitea action runners

This commit is contained in:
Sebastian Hugentobler 2023-12-21 09:59:53 +01:00
parent 1c0370a051
commit 99002ada95
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
3 changed files with 22 additions and 18 deletions

View File

@ -0,0 +1,12 @@
name: Build Multiarch Container Image
on: [push]
jobs:
call-reusable-workflow:
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
sha: ${{ gitea.sha }}
registry_url: ${{ secrets.REGISTRY_URL }}
registry_user: ${{ secrets.REGISTRY_USER }}
registry_pw: ${{ secrets.REGISTRY_PW }}

View File

@ -1,12 +0,0 @@
pipeline:
publish-docker-image:
image: plugins/kaniko
settings:
repo: docker.io/thallian/paperless-ngx
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
dockerfile: Dockerfile
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PW

View File

@ -1,4 +1,4 @@
FROM docker.io/alpine:3.18 AS builder
FROM docker.io/alpine:3.19 AS builder
RUN apk add --no-cache \
python3-dev \
@ -7,11 +7,15 @@ RUN apk add --no-cache \
musl-dev \
libpq-dev \
freetype-dev \
qpdf-dev
qpdf-dev \
gfortran \
cmake \
openblas-dev \
linux-headers
ENV VERSION=v1.17.4
ENV VERSION=v2.1.3
ENV ARCHIVE=paperless-ngx-$VERSION.tar.xz
ENV SHA256_SUM=c05c4c2c59ee09fe130adc9ab9f86ff866c780c14bba3024c26a5078f307dc0b
ENV SHA256_SUM=a27fd03806d6ee45c389e89e5074baddb21002c82bcf867fed2d81e36aa83d6e
RUN wget https://github.com/paperless-ngx/paperless-ngx/releases/download/$VERSION/$ARCHIVE
RUN echo "$SHA256_SUM $ARCHIVE" | sha256sum -c - || exit 1
RUN mkdir -p /install
@ -19,7 +23,7 @@ RUN tar xf $ARCHIVE -C /install --strip 1
WORKDIR /install
RUN sed '/mysqlclient/d' -i requirements.txt
RUN sed 's/scipy==1.8.1/scipy==1.11.2/g' -i requirements.txt
# RUN sed 's/scipy==1.8.1/scipy==1.11.2/g' -i requirements.txt
RUN sed 's/\(\["file_paperless\|\["file_mail\|\["file_celery\)/\["console/g' -i src/paperless/settings.py
RUN sed '/os\.makedirs(LOGGING_DIR, exist_ok=True)/d' -i src/paperless/settings.py
@ -27,7 +31,7 @@ RUN python3 -m venv env
RUN env/bin/pip3 install -r requirements.txt
FROM docker.io/thallian/alpine-s6:3.18-3.1.5.0
FROM docker.io/thallian/alpine-s6:3.19-3.1.6.2
RUN addgroup -g 2222 paperless
RUN adduser -h /var/lib/paperless -u 2222 -D -G paperless paperless