-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.21 KB
/
build-and-push.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Build and push images'
on:
push:
branches:
- main
- gh-build
# Rebuild every other day
schedule:
- cron: '0 0 */2 * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-push-php:
name: Build and push PHP
strategy:
matrix:
php_version:
- 8.1
- 8.2
- 8.3
php_image:
- cli
- fpm
uses: ./.github/workflows/build-and-push-image.yaml
with:
image_identifier: "php-${{ matrix.php_image }}-${{ matrix.php_version }}"
image_registry: ghcr.io
image_url_path: basecom/pimcore-docker-image
image_name: php
image_tag: ${{ matrix.php_version }}-${{ matrix.php_image }}-pimcore
image_directory: dist/images/php/${{ matrix.php_version }}-${{ matrix.php_image }}-pimcore
clean:
name: Cleanup registry
uses: ./.github/workflows/docker-registry-cleanup.yaml
with:
image_registry: ghcr.io
image_url_path: basecom/pimcore-docker-image