1
- name : " PHP 7.4 OLS "
1
+ name : " Litespeed 7 "
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
schedule :
6
- - cron : ' 35 20 * * 2'
6
+ - cron : ' 35 22 * * 2'
7
7
8
8
env :
9
9
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.
13
13
build :
14
14
strategy :
15
15
matrix :
16
+ php_version : [ "7.3", "7.4" ]
16
17
image : [ "ghcr.io/computestacks/cs-docker-php", "cmptstks/php" ]
17
18
runs-on : ubuntu-latest
18
19
permissions :
@@ -47,12 +48,12 @@ jobs:
47
48
with :
48
49
images : ${{ matrix.image }}
49
50
tags : |
50
- 7.4 -litespeed
51
+ ${{ matrix.php_version }} -litespeed
51
52
52
53
- name : Build and prepare to test
53
54
uses : docker/build-push-action@v5
54
55
with :
55
- context : litespeed/7.4 /
56
+ context : litespeed/${{ matrix.php_version }} /
56
57
load : true
57
58
build-args : |
58
59
php_version=${{ matrix.php_version }}
@@ -61,16 +62,16 @@ jobs:
61
62
62
63
- name : Test container image
63
64
run : >
64
- docker run --name=testphp74 -d \
65
+ docker run --name=testphp -d \
65
66
-e CS_AUTH_KEY=FcUpBTaoi746JbAdhWqJwtmXC0en1M3u -e METADATA_SERVICE=http://localhost \
66
- -e METADATA_AUTH=foobar123 -e LS_ADMIN_PW=ch3ngm3 ${{ matrix.image }}:7.4 -litespeed
67
- bash ./scripts/container-health.sh testphp74
67
+ -e METADATA_AUTH=foobar123 -e LS_ADMIN_PW=ch3ngm3 ${{ matrix.image }}:${{ matrix.php_version }} -litespeed
68
+ bash ./scripts/container-health.sh testphp
68
69
69
70
- name : Build and push
70
71
id : build-and-push
71
72
uses : docker/build-push-action@v5
72
73
with :
73
- context : litespeed/7.4 /
74
+ context : litespeed/${{ matrix.php_version }} /
74
75
push : ${{ github.event_name != 'pull_request' }}
75
76
tags : ${{ steps.meta.outputs.tags }}
76
77
labels : ${{ steps.meta.outputs.labels }}
0 commit comments