Merge pull request #6 from allmende/fix/ci-plugins #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pretalx OCI image | |
on: | |
pull_request: | |
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] | |
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 | |
platforms: linux/amd64 | |
context: ./context/default | |
file: Dockerfile.debian | |
build-args: | | |
BASE_IMAGE=docker.io/library/python | |
BASE_TAG=3.12-bookworm | |
PRETALX_VERSION=2024.1.0 | |
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 | |
platforms: linux/amd64 | |
context: ./context/default | |
file: Dockerfile.debian | |
ref: ${{ inputs.ref }} | |
build-args: | | |
BASE_IMAGE=docker.io/library/python | |
BASE_TAG=3.12-bookworm | |
PRETALX_VERSION=2024.1.0 | |
secrets: inherit |