Skip to content

Experimental images #12

Experimental images

Experimental images #12

# See
# - https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
# - https://docs.github.com/en/actions/learn-github-actions/contexts
# - https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
name: Experimental images
on:
# Rebuild every quarter on Sunday at 8:20 UTC
schedule:
- cron: 20 8 * 1/3 0
# Build on push to master
push:
branches:
- master
paths:
- .github/workflows/build-experimental.yaml
- "*.dockerfile"
- files/**
concurrency:
group: build-experimental-images
cancel-in-progress: true
# Run the automated tests first, then publish the images if the tests pass
jobs:
test:
name: ${{ matrix.dockerfile }}
uses: ./.github/workflows/test-job.yaml
with:
dockerfile: ${{ matrix.dockerfile }}
strategy:
fail-fast: true
matrix:
dockerfile:
- apache
- apache-php8.2
- nginx
- nginx-php8.2
apache:
name: Apache
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: apache.dockerfile
image-version: experimental
tags: |
ckulka/baikal:experimental-apache
ckulka/baikal:experimental
secrets: inherit
apache_php82:
name: Apache (PHP 8.2)
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: apache-php8.2.dockerfile
image-version: experimental
tags: |
ckulka/baikal:experimental-apache-php8.2
ckulka/baikal:experimental-php8.2
secrets: inherit
nginx:
name: Nginx
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: nginx.dockerfile
image-version: experimental
tags: ckulka/baikal:experimental-nginx
secrets: inherit
nginx_php82:
name: Nginx (PHP 8.2)
needs: test
uses: ./.github/workflows/build-job.yaml
with:
dockerfile: nginx-php8.2.dockerfile
image-version: experimental
tags: ckulka/baikal:experimental-nginx-php8.2
secrets: inherit