Skip to content

Commit e84fb9b

Browse files
authored
add Docker CI workflow for multiple PHP versions
1 parent b944430 commit e84fb9b

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
version:
17+
- "8.0.30"
18+
- "8.1.34"
19+
- "8.2.30"
20+
- "8.3.29"
21+
- "8.4.16"
22+
- "8.5.1"
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: docker/setup-buildx-action@v3
28+
29+
- uses: docker/login-action@v3
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
33+
34+
- name: Build and push
35+
uses: docker/build-push-action@v5
36+
with:
37+
context: .
38+
push: true
39+
build-args: |
40+
PHP_VERSION=${{ matrix.version }}
41+
tags: |
42+
${{ secrets.DOCKERHUB_USERNAME }}/php-extension-dev:${{ matrix.version }}

0 commit comments

Comments
 (0)