Add Pretix with own list of plugins
All checks were successful
Build Pretix / Build Pretix Image (push) Successful in 3m12s
All checks were successful
Build Pretix / Build Pretix Image (push) Successful in 3m12s
We want to be able to use plugins in our Pretix, so build a custom image with them. Initially only the pretix-passbook plugin is active.
This commit is contained in:
parent
c13790491a
commit
ee87d7ee6b
4 changed files with 60 additions and 0 deletions
44
.forgejo/workflows/build_pretix.yml
Normal file
44
.forgejo/workflows/build_pretix.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: Build Pretix
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
push:
|
||||
paths:
|
||||
- '.forgejo/workflows/build_pretix.yml'
|
||||
- 'pretix/**'
|
||||
schedule:
|
||||
- cron: "@daily"
|
||||
|
||||
jobs:
|
||||
build-container:
|
||||
name: Build Pretix Image
|
||||
runs-on: docker
|
||||
container:
|
||||
image: ghcr.io/osscontainertools/kaniko:alpine
|
||||
strategy:
|
||||
matrix:
|
||||
pretix-version:
|
||||
# renovate: datasource=docker depName=docker.io/pretix/standalone
|
||||
- 2026.8
|
||||
steps:
|
||||
- name: Install required system packages
|
||||
run: apk add --no-cache nodejs
|
||||
|
||||
- name: Checkout Source Code
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Build Container
|
||||
env:
|
||||
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
||||
KANIKO_GIT_HAMBURG_CCC_DE_USER: forgejo-actions
|
||||
KANIKO_GIT_HAMBURG_CCC_DE_PASSWORD: ${{ secrets.PACKAGES_TOKEN }}
|
||||
run: /kaniko/executor
|
||||
--dockerfile="${{forgejo.workspace }}/pretix/Containerfile"
|
||||
--context="dir://${{ forgejo.workspace }}/pretix"
|
||||
--build-arg=TAG=${{ matrix.pretix-version }}
|
||||
--destination=git.hamburg.ccc.de/ccchh/oci-images/pretix:${{ matrix.pretix-version }}
|
||||
--no-push-cache
|
||||
--credential-helpers=env
|
||||
--annotation=org.opencontainers.image.ref.name=pretix
|
||||
--annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
||||
--annotation=org.opencontainers.image.source=${{ forgejo.server_url }}/${{ forgejo.repository }}
|
||||
|
|
@ -12,6 +12,7 @@ Tools in use:
|
|||
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/keycloak`
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/nextcloud`
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/pretix`
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/frontend`
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/backend`
|
||||
- `git.hamburg.ccc.de/CCCHH/oci-images/penpot/exporter`
|
||||
|
|
|
|||
12
pretix/Containerfile
Normal file
12
pretix/Containerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
ARG TAG=latest
|
||||
|
||||
FROM docker.io/pretix/standalone:${TAG}
|
||||
|
||||
USER root
|
||||
COPY requirements.txt /tmp/plugin-requirements.txt
|
||||
RUN pip3 install --no-cache-dir -r /tmp/plugin-requirements.txt \
|
||||
&& rm /tmp/plugin-requirements.txt
|
||||
|
||||
USER pretixuser
|
||||
# Compile static files and translations, including those of the plugins.
|
||||
RUN cd /pretix/src && make production
|
||||
3
pretix/requirements.txt
Normal file
3
pretix/requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Pretix plugins to install into the image.
|
||||
# Pin versions so Renovate can propose updates.
|
||||
pretix-passbook==1.14.1
|
||||
Loading…
Reference in a new issue