File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
on : # yamllint disable-line rule:truthy
4
4
workflow_dispatch :
5
- push :
6
- branches :
7
- - master
8
5
pull_request :
9
6
branches :
10
7
- master
18
15
outputs :
19
16
matrix : ${{ steps.matrix.outputs.matrix }}
20
17
steps :
21
- - id : matrix
18
+ - name : ⚙️ Generate matrix
19
+ id : matrix
22
20
run : |
23
21
echo 'matrix={
24
22
"os_name": ["alpine"],
33
31
uses : wayofdev/gh-actions/.github/workflows/build-image.yml@master
34
32
with :
35
33
os : " ubuntu-latest"
36
- push-to-hub : ${{ github.event_name != 'pull_request' }}
34
+ push-to-hub : true
37
35
image-namespace : " wayofdev/php-base"
36
+ image-template-path : " ./dist/base"
38
37
image-template : ${{ matrix.php_version }}-${{ matrix.php_type }}-${{ matrix.os_name }}
39
38
image-version : latest
40
39
secrets :
Original file line number Diff line number Diff line change 13
13
runs-on : " ubuntu-latest"
14
14
outputs :
15
15
matrix : ${{ steps.matrix.outputs.matrix }}
16
+ version : ${{ steps.version.outputs.version }}
16
17
steps :
17
18
- name : ⚙️ Generate matrix
18
19
id : matrix
26
27
- name : ⚙️ Get version for image tag
27
28
id : version
28
29
run : |
29
- echo "version=$(echo ${GITHUB_REF#refs/*/} | cut -c 2-)" >> $GITHUB_OUTPUT
30
+ version=${{ github.ref_name }}
31
+ version=${version#v}
32
+ echo "version=$version" >> $GITHUB_OUTPUT
30
33
31
34
build :
32
35
needs : prepare
37
40
os : " ubuntu-latest"
38
41
push-to-hub : true
39
42
image-namespace : " wayofdev/php-base"
43
+ image-template-path : " ./dist/base"
40
44
image-template : ${{ matrix.php_version }}-${{ matrix.php_type }}-${{ matrix.os_name }}
41
45
image-version : ${{ needs.prepare.outputs.version }}
42
46
secrets :
You can’t perform that action at this time.
0 commit comments