-
Notifications
You must be signed in to change notification settings - Fork 29
64 lines (58 loc) · 1.98 KB
/
template-php.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
################################################################################
# The setups in this file belong to the project https://code.shin.company/php
# I appreciate you respecting my intellectual efforts in creating them.
# If you intend to copy or use ideas from this project, please credit properly.
# Author: SHIN Company <[email protected]>
# License: https://code.shin.company/php/blob/main/LICENSE
################################################################################
name: Build Template PHP
################################################################################
################################################################################
on:
workflow_call:
inputs:
app_name:
required: true
type: string
server:
required: false
type: string
default: ""
tag_prefix:
required: false
type: string
default: ""
build_all:
required: false
type: boolean
default: false
################################################################################
################################################################################
jobs:
maintained:
uses: ./.github/workflows/template-common.yml
secrets: inherit
strategy:
matrix:
os: ["", "alpine"]
php_version: ["8.4", "8.3", "8.2", "8.1"]
with:
os: ${{ matrix.os }}
php_version: ${{ matrix.php_version }}
app_name: ${{ inputs.app_name }}
server: ${{ inputs.server }}
tag_prefix: ${{ inputs.tag_prefix }}
outdated:
if: ${{ inputs.build_all }}
uses: ./.github/workflows/template-common.yml
secrets: inherit
strategy:
matrix:
os: ["", "alpine"]
php_version: ["8.0", "7.4", "7.3", "7.2", "7.1", "7.0", "5.6"]
with:
os: ${{ matrix.os }}
php_version: ${{ matrix.php_version }}
app_name: ${{ inputs.app_name }}
server: ${{ inputs.server }}
tag_prefix: ${{ inputs.tag_prefix }}