forked from pretalx/pretalx-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 1.42 KB
/
build.plugins.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Pretalx extended 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
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=latest
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=latest
secrets: inherit