mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-11-30 04:29:15 +01:00
Attach install-php-extensions to the releases
This commit is contained in:
parent
3327c035f6
commit
ff43ab4a23
11
.github/workflows/readme-release.yml
vendored
11
.github/workflows/readme-release.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user