Skip to content

Commit

Permalink
Merge pull request #3 from allmende/feat/ci-plugins
Browse files Browse the repository at this point in the history
Feat(CI): build pretalx-extended image from plugins context
  • Loading branch information
almereyda authored May 10, 2024
2 parents 913e921 + b32c2f2 commit 6ecd0ae
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ on:
branches:
- main
- next
paths:
- .github/workflows/build-and-push.yml
- .github/workflows/build.default.yml
- context/default
push:
branches:
- next
paths:
- .github/workflows/build-and-push.yml
- .github/workflows/build.default.yml
- context/default

release:
types: [published]
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/build.plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Pretalx OCI image

on:
pull_request:
branches:
- main
- next
paths:
- .github/workflows/build-and-push.yml
- .github/workflows/build.plugins.yml
- context/plugins
push:
branches:
- next
paths:
- .github/workflows/build-and-push.yml
- .github/workflows/build.plugins.yml
- context/plugins

release:
types: [published]

workflow_call:
inputs:
ref:
required: true
type: string
default: ${{ github.ref }}

workflow_dispatch:
inputs:
ref:
required: false
type: string


permissions:
contents: read
packages: write
id-token: write


jobs:

call-build-and-push:
name: Call image build
uses: ./.github/workflows/build-and-push.yml
if: ( inputs.ref == 0 )
with:
image-name: pretalx-extended
platforms: linux/amd64
context: ./context/plugins
file: Dockerfile.debian
build-args: |
BASE_IMAGE=ghcr.io/allmende/pretalx
BASE_TAG=next
secrets: inherit
call-build-and-push-ref:
name: Call tagged image build
uses: ./.github/workflows/build-and-push.yml
if: ( inputs.ref != 0 )
with:
image-name: pretalx-extended
platforms: linux/amd64
context: ./context/plugins
file: Dockerfile.debian
ref: ${{ inputs.ref }}
build-args: |
BASE_IMAGE=ghcr.io/allmende/pretalx
BASE_TAG=next
secrets: inherit
8 changes: 0 additions & 8 deletions context/plugins/Dockerfile

This file was deleted.

8 changes: 8 additions & 0 deletions context/plugins/Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG BASE_IMAGE=docker.io/library/pretalx/pretalx
ARG BASE_TAG=latest

FROM ${BASE_IMAGE}:${BASE_TAG}

RUN pip3 install -U prtx-faq \
pretalx-pages \
pretalx-public-voting

0 comments on commit 6ecd0ae

Please sign in to comment.