Skip to content

Commit 4c2f5b9

Browse files
committed
consolidate github actions
1 parent 8aa3b28 commit 4c2f5b9

File tree

5 files changed

+12
-61
lines changed

5 files changed

+12
-61
lines changed

.github/workflows/php7-4.yml renamed to .github/workflows/litespeed-7.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: "PHP 7.4 OLS"
1+
name: "Litespeed 7"
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '35 20 * * 2'
6+
- cron: '35 22 * * 2'
77

88
env:
99
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.
@@ -13,6 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16+
php_version: [ "7.3", "7.4" ]
1617
image: [ "ghcr.io/computestacks/cs-docker-php", "cmptstks/php" ]
1718
runs-on: ubuntu-latest
1819
permissions:
@@ -47,12 +48,12 @@ jobs:
4748
with:
4849
images: ${{ matrix.image }}
4950
tags: |
50-
7.4-litespeed
51+
${{ matrix.php_version }}-litespeed
5152
5253
- name: Build and prepare to test
5354
uses: docker/build-push-action@v5
5455
with:
55-
context: litespeed/7.4/
56+
context: litespeed/${{ matrix.php_version }}/
5657
load: true
5758
build-args: |
5859
php_version=${{ matrix.php_version }}
@@ -61,16 +62,16 @@ jobs:
6162

6263
- name: Test container image
6364
run: >
64-
docker run --name=testphp74 -d \
65+
docker run --name=testphp -d \
6566
-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
6869
6970
- name: Build and push
7071
id: build-and-push
7172
uses: docker/build-push-action@v5
7273
with:
73-
context: litespeed/7.4/
74+
context: litespeed/${{ matrix.php_version }}/
7475
push: ${{ github.event_name != 'pull_request' }}
7576
tags: ${{ steps.meta.outputs.tags }}
7677
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/litespeed-8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Litespeed 8"
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '35 23 * * 2'
6+
- cron: '35 21 * * 2'
77

88
env:
99
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.

.github/workflows/nginx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "PHP nginx"
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '35 22 * * 2'
6+
- cron: '35 20 * * 2'
77

88
env:
99
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.

.github/workflows/php7-3.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![Litespeed 8](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/litespeed-8.yml/badge.svg)](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/litespeed-8.yml)
66

7-
[![PHP 7.4 OLS](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/php7-4.yml/badge.svg)](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/php7-4.yml)
7+
[![Litespeed 7](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/litespeed-7.yml/badge.svg)](https://github.com/ComputeStacks/cs-docker-php/actions/workflows/litespeed-7.yml)
88

99
Our OpenLiteSpeed images are deprecated and will only be receiving security updates. Please migrate to our nginx images.
1010

0 commit comments

Comments
 (0)