Skip to content

Commit 4b040ce

Browse files
authored
Version 2 Release (#137)
1 parent 55ab40d commit 4b040ce

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ jobs:
1919
strategy:
2020
matrix:
2121
include:
22-
- { tag: '1.x', php: '8.0', distro: bullseye, tag-suffix: "v1-dev", latest-tag: false }
23-
- { tag: '1.x', php: '8.1', distro: bullseye, tag-suffix: "v1-dev", latest-tag: false }
24-
- { tag: '1.x', php: '8.2', distro: bullseye, tag-suffix: "v1-dev", latest-tag: false }
25-
- { tag: 'v1.3', php: '8.0', distro: bullseye, tag-suffix: "", latest-tag: true }
26-
- { tag: 'v1.3', php: '8.1', distro: bullseye, tag-suffix: "", latest-tag: true }
27-
- { tag: 'v1.3', php: '8.2', distro: bullseye, tag-suffix: "", latest-tag: true }
28-
- { tag: '2.x', php: '8.2', distro: bullseye, tag-suffix: "v2-dev", latest-tag: false }
22+
- { tag: '1.x', php: '8.0', distro: bullseye, version-override: "v1-dev", latest-tag: false }
23+
- { tag: '1.x', php: '8.1', distro: bullseye, version-override: "v1-dev", latest-tag: false }
24+
- { tag: '1.x', php: '8.2', distro: bullseye, version-override: "v1-dev", latest-tag: false }
25+
- { tag: 'v1.3', php: '8.0', distro: bullseye, version-override: "", latest-tag: true }
26+
- { tag: 'v1.3', php: '8.1', distro: bullseye, version-override: "", latest-tag: true }
27+
- { tag: 'v1.3', php: '8.2', distro: bullseye, version-override: "", latest-tag: false }
28+
- { tag: 'v2.0', php: '8.2', distro: bullseye, version-override: "", latest-tag: true }
29+
- { tag: '2.x', php: '8.2', distro: bullseye, version-override: "v2-dev", latest-tag: false }
2930

3031
steps:
3132
- uses: actions/checkout@v3
@@ -54,7 +55,7 @@ jobs:
5455
- name: Configure and build images
5556
id: vars
5657
env:
57-
TAG_SUFFIX: "${{ matrix.tag-suffix }}"
58+
VERSION_OVERRIDE: "${{ matrix.version-override }}"
5859
run: |
5960
set -eux;
6061
@@ -74,8 +75,8 @@ jobs:
7475
DEBIAN_VERSION="${{ matrix.distro }}"
7576
VERSION="${{ matrix.tag }}"
7677
# for the latest dev branch we use "dev" as the version and not the name of the branch
77-
if [ ! -z "$TAG_SUFFIX" ]; then
78-
VERSION="$TAG_SUFFIX"
78+
if [ ! -z "$VERSION_OVERRIDE" ]; then
79+
VERSION="$VERSION_OVERRIDE"
7980
fi
8081
8182
PHP_SUB_VERSION=$(docker run -i --rm php:${{ matrix.php }}-fpm-${{ matrix.distro }} php -r 'echo PHP_VERSION;')

0 commit comments

Comments
 (0)