We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ebb23 commit 63f7001Copy full SHA for 63f7001
.github/workflows/docker-build-and-push.yml
@@ -1,13 +1,20 @@
1
+
2
name: Build and Push Docker Image
3
4
on:
5
push:
6
branches:
7
- main
8
9
+env:
10
+ latest_version: 84
11
12
jobs:
13
build-and-push:
14
runs-on: ubuntu-latest
15
+ strategy:
16
+ matrix:
17
+ php_version: [82, 83, 84]
18
19
steps:
20
- name: Checkout code
@@ -27,4 +34,8 @@ jobs:
27
34
with:
28
35
context: .
29
36
push: true
30
- tags: manudonihubcoreai/composer:latest
37
+ tags: |
38
+ manudonihubcoreai/composer:${{ matrix.php_version }}
39
+ ${{ matrix.php_version == env.latest_version && 'manudonihubcoreai/composer:latest' || '' }}
40
+ build-args: |
41
+ PHP_VERSION=${{ matrix.php_version }}
0 commit comments