|
1 | | -name: publish-5_6 |
| 1 | +name: publish |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | release: |
5 | 5 | types: [published] |
6 | 6 | workflow_dispatch: |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - publish-5_6: |
| 9 | + publish: |
| 10 | + strategy: |
| 11 | + matrix: |
| 12 | + php: [ "5.6", "7.4", "8.0", "8.1", "8.2" ] |
10 | 13 | runs-on: ubuntu-latest |
11 | 14 | steps: |
12 | 15 | - |
|
20 | 23 | name: Read PHP version - revision |
21 | 24 | uses: bfren/read-file@v2 |
22 | 25 | with: |
23 | | - file: ./5.6/overlay/tmp/PHP_REVISION |
| 26 | + file: ./${{ matrix.php }}/overlay/tmp/PHP_REVISION |
24 | 27 | id: php_revision |
25 | 28 | - |
26 | 29 | name: Read image version |
@@ -65,30 +68,22 @@ jobs: |
65 | 68 | uses: docker/build-push-action@v3 |
66 | 69 | with: |
67 | 70 | context: . |
68 | | - file: ./5.6/Dockerfile |
| 71 | + file: ./${{ matrix.php }}/Dockerfile |
69 | 72 | build-args: | |
70 | 73 | BF_IMAGE=${{ env.REPOSITORY_NAME }} |
71 | 74 | BF_VERSION=${{ steps.version.outputs.contents }} |
72 | 75 | push: true |
73 | 76 | platforms: linux/amd64,linux/arm/v7,linux/arm64 |
74 | 77 | tags: | |
75 | | - bfren/apache-php:php5 |
76 | | - bfren/apache-php:php5-${{ steps.version_major.outputs.contents }} |
77 | | - bfren/apache-php:php5-${{ steps.version_minor.outputs.contents }} |
78 | | - bfren/apache-php:php5-${{ steps.version.outputs.contents }} |
79 | | - bfren/apache-php:php5.6 |
80 | | - bfren/apache-php:php5.6-${{ steps.version_major.outputs.contents }} |
81 | | - bfren/apache-php:php5.6-${{ steps.version_minor.outputs.contents }} |
82 | | - bfren/apache-php:php5.6-${{ steps.version.outputs.contents }} |
| 78 | + bfren/apache-php:php${{ matrix.php }} |
| 79 | + bfren/apache-php:php${{ matrix.php }}-${{ steps.version_major.outputs.contents }} |
| 80 | + bfren/apache-php:php${{ matrix.php }}-${{ steps.version_minor.outputs.contents }} |
| 81 | + bfren/apache-php:php${{ matrix.php }}-${{ steps.version.outputs.contents }} |
83 | 82 | bfren/apache-php:php${{ steps.php_revision.outputs.contents }} |
84 | | - ghcr.io/bfren/apache-php:php5 |
85 | | - ghcr.io/bfren/apache-php:php5-${{ steps.version_major.outputs.contents }} |
86 | | - ghcr.io/bfren/apache-php:php5-${{ steps.version_minor.outputs.contents }} |
87 | | - ghcr.io/bfren/apache-php:php5-${{ steps.version.outputs.contents }} |
88 | | - ghcr.io/bfren/apache-php:php5.6 |
89 | | - ghcr.io/bfren/apache-php:php5.6-${{ steps.version_major.outputs.contents }} |
90 | | - ghcr.io/bfren/apache-php:php5.6-${{ steps.version_minor.outputs.contents }} |
91 | | - ghcr.io/bfren/apache-php:php5.6-${{ steps.version.outputs.contents }} |
| 83 | + ghcr.io/bfren/apache-php:php${{ matrix.php }} |
| 84 | + ghcr.io/bfren/apache-php:php${{ matrix.php }}-${{ steps.version_major.outputs.contents }} |
| 85 | + ghcr.io/bfren/apache-php:php${{ matrix.php }}-${{ steps.version_minor.outputs.contents }} |
| 86 | + ghcr.io/bfren/apache-php:php${{ matrix.php }}-${{ steps.version.outputs.contents }} |
92 | 87 | ghcr.io/bfren/apache-php:php${{ steps.php_revision.outputs.contents }} |
93 | 88 | - |
94 | 89 | name: Image digest |
|
0 commit comments