Docker builds #815
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker builds | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 20 * * *' # 12:00 PT | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
artifacts: | |
name: Artifact | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- v0.8.1 | |
- dev | |
build: | |
- alpine | |
- al2 | |
- al2023 | |
- centos7/centos7 | |
- centos8/centos8 | |
- centos8/rocky8 | |
- el9/el9 | |
- debian/debian11 | |
- ubuntu/ubuntu20 | |
- mint21 | |
- litespeed | |
- openlitespeed | |
- sle15 | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 1s | |
--health-timeout 1s | |
--health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build images | |
run: | | |
docker build --pull \ | |
--tag ${{ matrix.build }}-${{ matrix.version }} \ | |
--file docker/${{ matrix.build }}.Dockerfile \ | |
--build-arg RELAY=${{ matrix.version }} . | |
- name: Show configuration for Relay | |
run: | | |
docker run \ | |
${{ matrix.build }}-${{ matrix.version }} \ | |
php --ri relay | |
- name: Run quicktest | |
run: | | |
docker run \ | |
--network="host" \ | |
--volume $(pwd):/root/relay/ \ | |
--env REDIS_HOST=$REDIS_HOST \ | |
${{ matrix.build }}-${{ matrix.version }} \ | |
php /root/relay/.github/workflows/support/quicktest.php | |
packages: | |
name: Package | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- apache2 | |
- centos7/centos7-yum | |
- centos8/centos8-dnf | |
- el9/el9-dnf | |
- debian/debian11-apt | |
- debian/debian12-apt | |
- ubuntu/ubuntu22-apt | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 1s | |
--health-timeout 1s | |
--health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build images | |
run: | | |
docker build --pull \ | |
--tag ${{ matrix.package }} \ | |
--file docker/${{ matrix.package }}.Dockerfile . | |
- name: Show configuration for Relay | |
run: | | |
docker run ${{ matrix.package }} bash -c "php --ri relay" | |
- name: Run quicktest | |
run: | | |
docker run \ | |
--network="host" \ | |
--volume $(pwd):/root/relay/ \ | |
--env REDIS_HOST=$REDIS_HOST \ | |
${{ matrix.package }} \ | |
bash -c "php /root/relay/.github/workflows/support/quicktest.php" |