Skip to content

Commit e2d0817

Browse files
committed
upgrade docker-php-extension-installer to version 1.4.18 and automated release
1 parent d852135 commit e2d0817

File tree

4 files changed

+56
-1
lines changed

4 files changed

+56
-1
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Release
3+
4+
on:
5+
push:
6+
tags:
7+
- "[0-9]+.[0-9]+.[0-9]+"
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
uses: llaville/.github/.github/workflows/release.yml@master
13+
with:
14+
repository: ${{ github.repository }}
15+
box-output: ''
16+
release-draft: true

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles.
77

88
## [Unreleased]
99

10+
<!-- MARKDOWN-RELEASE:START -->
11+
### Changed
12+
13+
- upgrade [docker-php-extension-installer](https://github.com/mlocati/docker-php-extension-installer) to version 1.4.18
14+
<!-- MARKDOWN-RELEASE:END -->
15+
1016
## [1.5.0] - 2022-02-20
1117

1218
### Changed

Dockerfiles/mods/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FROM ${VENDOR}/php-fpm:${PHP_VERSION}-base as base
77

88
FROM base as builder
99

10-
ARG DOCKER_PHP_EXTENSION_INSTALLER=1.4.16
10+
ARG DOCKER_PHP_EXTENSION_INSTALLER=1.4.18
1111
ADD https://github.com/mlocati/docker-php-extension-installer/releases/download/${DOCKER_PHP_EXTENSION_INSTALLER}/install-php-extensions /usr/local/bin/
1212
RUN chmod uga+x /usr/local/bin/install-php-extensions
1313

resources/release/build.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env php
2+
<?php
3+
/**
4+
* This file is part of the Docker-PHP-Toolbox package.
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*
9+
* @since Release 1.6.0
10+
* @author Laurent Laville
11+
*/
12+
13+
14+
/**
15+
* Extracts the latest release note.
16+
*
17+
* All text found between `<!-- MARKDOWN-RELEASE:START -->` and `<!-- MARKDOWN-RELEASE:END -->` tags
18+
*/
19+
$inputFile = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'CHANGELOG.md';
20+
$releaseNotes = [];
21+
22+
$markdown = file_get_contents($inputFile);
23+
$matched = preg_match('/.*(<!-- MARKDOWN-RELEASE:START -->\n)(.*)?(<!-- MARKDOWN-RELEASE:END -->\n).*/smi', $markdown, $releaseNotes);
24+
if (!$matched) {
25+
// no release notes found
26+
exit(1);
27+
}
28+
29+
$bytes = file_put_contents(dirname($inputFile) . DIRECTORY_SEPARATOR . 'releaseNotes.md', $releaseNotes[2]);
30+
if (!$bytes) {
31+
// unable to write the current release notes
32+
exit(2);
33+
}

0 commit comments

Comments
 (0)