-
Notifications
You must be signed in to change notification settings - Fork 34
50 lines (47 loc) · 1.27 KB
/
build-php-images.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
on:
workflow_call:
inputs:
version:
required: true
type: string
debug:
required: false
type: boolean
default: true
cron:
required: false
type: boolean
default: true
multiarch:
required: false
type: boolean
default: true
jobs:
build-php-image:
name: Build PHP ${{ inputs.version }} image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}
context: ./php/php${{ inputs.version }}
multiarch: ${{ inputs.multiarch }}
secrets: inherit
build-php-debug-image:
name: Build PHP ${{ inputs.version }} debug image
if: ${{ inputs.debug == true }}
needs: build-php-image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}-debug
context: ./php/php${{ inputs.version }}-debug
multiarch: ${{ inputs.multiarch }}
secrets: inherit
build-php-cron-image:
name: Build cron image
if: ${{ inputs.cron == true }}
needs: build-php-image
uses: ./.github/workflows/build-image.yml
with:
image: php${{ inputs.version }}-cron
context: ./php/php${{ inputs.version }}-cron
multiarch: ${{ inputs.multiarch }}
secrets: inherit