diff --git a/.woodpecker/ioncube.yml b/.woodpecker/ioncube.yml new file mode 100644 index 0000000..805a190 --- /dev/null +++ b/.woodpecker/ioncube.yml @@ -0,0 +1,22 @@ +matrix: + PHP_VERSION: + - 7.4 + - 8.1 +pipeline: + ioncube: + image: plugins/docker + settings: + dockerfile: Dockerfile.ioncube + registry: techio.dev + repo: techio.dev/${CI_REPO} + tags: + - ${PHP_VERSION}-alpine-ioncube + build_args: + - version=${PHP_VERSION} + username: deploy + password: + from_secret: deploy_password +when: + event: tag +depends_on: + - normal diff --git a/.woodpecker/normal.yml b/.woodpecker/normal.yml new file mode 100644 index 0000000..abcff51 --- /dev/null +++ b/.woodpecker/normal.yml @@ -0,0 +1,21 @@ +matrix: + PHP_VERSION: + - 7.4 + - 8.0 + - 8.1 + - 8.2 +pipeline: + normal: + image: plugins/docker + settings: + registry: techio.dev + repo: techio.dev/${CI_REPO} + tags: + - ${PHP_VERSION}-alpine + build_args: + - version=${PHP_VERSION} + username: deploy + password: + from_secret: deploy_password +when: + event: tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cac4c9a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +ARG version=7.4 +FROM wordpress:php${version}-fpm-alpine +ARG version=7.4 +RUN echo $version +RUN echo "image: wordpress[$version]:php${version}-fpm-alpine" +RUN docker-php-ext-install pdo pdo_mysql +COPY docker-user.ini /usr/local/etc/php/conf.d \ No newline at end of file diff --git a/Dockerfile.ioncube b/Dockerfile.ioncube new file mode 100644 index 0000000..c196ff8 --- /dev/null +++ b/Dockerfile.ioncube @@ -0,0 +1,8 @@ +ARG version=7.4 +FROM techio.dev/wordpress/php-fpm:${version}-alpine-ioncube +ARG version=7.4 +RUN apk add curl +RUN curl -o ioncube_loaders_lin_x86-64.tar.gz -fL "https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz" +RUN tar -xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local/lib/php/extensions +RUN echo "zend_extension = /usr/local/lib/php/extensions/ioncube/ioncube_loader_lin_${version}.so" > /usr/local/etc/php/conf.d/docker-ioncube.ini +RUN cat /usr/local/etc/php/conf.d/docker-ioncube.ini \ No newline at end of file diff --git a/docker-user.ini b/docker-user.ini new file mode 100644 index 0000000..b4cb68a --- /dev/null +++ b/docker-user.ini @@ -0,0 +1,4 @@ +upload_max_filesize = 1024M +post_max_size = 1024M +max_execution_time = 3600 +max_input_vars = 3000 \ No newline at end of file