-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (30 loc) · 1.14 KB
/
continuous-integration.yml
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
name: 'Continuous Integration'
on:
schedule:
- cron: '0 2 * * *'
push:
branches: [ main ]
pull_request:
jobs:
docker-build:
name: "Build ${{ matrix.php-version }}-${{ matrix.base-image }}"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
base-image:
- "alpine"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Build"
run: "DOCKER_BUILDKIT=1 docker build php/${{ matrix.base-image }}/${{ matrix.php-version }} -t ghcr.io/core23/jenkins-php-agent:${{ matrix.php-version }}-${{ matrix.base-image }}"
- name: "History"
run: "docker image history ghcr.io/core23/jenkins-php-agent:${{ matrix.php-version }}-${{ matrix.base-image }}"
- name: "Size"
run: "docker images ghcr.io/core23/jenkins-php-agent:${{ matrix.php-version }}-${{ matrix.base-image }} --format \"{{.Repository}}:{{.Tag}} -> {{.Size}}\""
- name: "Version"
run: "docker run --rm --entrypoint=php ghcr.io/core23/jenkins-php-agent:${{ matrix.php-version }}-${{ matrix.base-image }} --version"