-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (28 loc) · 1.03 KB
/
docker-matrix.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
name: Docker Matrix
on:
workflow_dispatch:
jobs:
DockerMatrix:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
image-tag: ['3.13-slim-bullseye', '3.14-rc-slim-bullseye']
update-strategy: [default, minor]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Build
uses: docker/[email protected]
- name: Build current Docker image with tests
run: |
docker build --target test -t zephir-api2:test .
- name: Install and update dependencies
run: |
if [[ "${{ matrix.update-strategy }}" == "default" ]]; then
echo "Running normal test suite"
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target test -t zephir-api2:test .
elif [[ "${{ matrix.update-strategy }}" == "minor" ]]; then
echo "Minor version update"
docker build --build-arg IMAGE_TAG=${{ matrix.image-tag }} --target test-minor-update -t zephir-api2:test .
fi