mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-01-26 11:34:03 +00:00
Initial testing
This commit is contained in:
4
.github/renovate.json
vendored
Normal file
4
.github/renovate.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["github>ivuorinen/.github:renovate-config"]
|
||||
}
|
||||
42
.github/workflows/docker-image.yml
vendored
Normal file
42
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: GitHub Docker Registry Build
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '41 1 * * *'
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
# Use docker.io for Docker Hub if empty
|
||||
REGISTRY: ghcr.io
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ github.repository }}
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php: [php74, php80, php81, php82]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Publish to Registry (${{ matrix.php }})
|
||||
uses: elgohr/Publish-Docker-Github-Action@v5
|
||||
with:
|
||||
name: ${{ env.IMAGE_NAME }}/php-imagick
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: ghcr.io
|
||||
tags: ${{ matrix.phpDir }}
|
||||
dockerfile: Dockerfile-${{ matrix.php }}
|
||||
default_branch: main
|
||||
platforms: linux/amd64,linux/arm64
|
||||
cache: ${{ github.event_name != 'schedule' }}
|
||||
17
Dockerfile-php74
Normal file
17
Dockerfile-php74
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM php:7.4
|
||||
|
||||
RUN docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-configure pcntl \
|
||||
&& docker-php-ext-install pcntl \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
||||
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) intl mbstring pdo xml gd exif bcmath \
|
||||
&& yes '' | pecl install imagick \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
RUN php --version \
|
||||
&& composer --version \
|
||||
17
Dockerfile-php80
Normal file
17
Dockerfile-php80
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM php:8.0
|
||||
|
||||
RUN docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-configure pcntl \
|
||||
&& docker-php-ext-install pcntl \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
||||
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) intl mbstring pdo xml gd exif bcmath \
|
||||
&& yes '' | pecl install imagick \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
RUN php --version \
|
||||
&& composer --version \
|
||||
17
Dockerfile-php81
Normal file
17
Dockerfile-php81
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM php:8.1
|
||||
|
||||
RUN docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-configure pcntl \
|
||||
&& docker-php-ext-install pcntl \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
||||
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) intl mbstring pdo xml gd exif bcmath \
|
||||
&& yes '' | pecl install imagick \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
RUN php --version \
|
||||
&& composer --version \
|
||||
17
Dockerfile-php82
Normal file
17
Dockerfile-php82
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM php:8.2
|
||||
|
||||
RUN docker-php-ext-install bcmath \
|
||||
&& docker-php-ext-configure pcntl \
|
||||
&& docker-php-ext-install pcntl \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
libicu-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev \
|
||||
libpng-dev libonig-dev libmagickwand-dev python-dev unzip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) intl mbstring pdo xml gd exif bcmath \
|
||||
&& yes '' | pecl install imagick \
|
||||
&& docker-php-ext-enable imagick \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
RUN php --version \
|
||||
&& composer --version \
|
||||
Reference in New Issue
Block a user