Attach install-php-extensions to the releases

This commit is contained in:
Michele Locati 2020-12-10 15:59:21 +01:00
parent 3327c035f6
commit ff43ab4a23
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
2 changed files with 13 additions and 2 deletions

View File

@ -149,6 +149,7 @@ jobs:
printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV"
printf 'RELEASE_NOTES<<EOF\n%s\nEOF\n' "$RELEASE_NOTES" >> "$GITHUB_ENV"
- name: Create release
id: create_release
if: env.VERSIONTAG_THIS != ''
uses: actions/create-release@v1
env:
@ -159,3 +160,13 @@ jobs:
body: ${{ env.RELEASE_NOTES }}
draft: true
prerelease: false
- name: Upload release asset
if: env.VERSIONTAG_THIS != ''
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./install-php-extensions
asset_name: install-php-extensions
asset_content_type: application/octet-stream

View File

@ -21,7 +21,7 @@ For example, here are two `Dockerfile`s that install the GD and xdebug PHP exten
```Dockerfile
FROM php:7.2-cli
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
install-php-extensions gd xdebug
@ -32,7 +32,7 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync && \
```Dockerfile
FROM php:7.2-cli
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions gd xdebug
```