Skip to content
Snippets Groups Projects
Commit 2f4e8da7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'add/new-php' into 'master'

Add images for PHP 7.4 and 8.0

See merge request !18
parents 281c9e41 c629730f
No related branches found
No related tags found
1 merge request!18Add images for PHP 7.4 and 8.0
Pipeline #4269 passed with warnings with stages
in 20 minutes and 49 seconds
......@@ -125,6 +125,42 @@ build-debian-wp-org-deploy-build-dev:
except:
- master
# PHP 8.0
build-php-8.0-master:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php:8.0" ./php/8.0
- docker push "$CI_REGISTRY_IMAGE/php:8.0"
only:
- master
when: manual
build-php-8.0-dev:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php:8.0-dev" ./php/8.0
- docker push "$CI_REGISTRY_IMAGE/php:8.0-dev"
except:
- master
# PHP 7.4
build-php-7.4-master:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php:7.4" ./php/7.4
- docker push "$CI_REGISTRY_IMAGE/php:7.4"
only:
- master
when: manual
build-php-7.4-dev:
stage: deploy
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE/php:7.4-dev" ./php/7.4
- docker push "$CI_REGISTRY_IMAGE/php:7.4-dev"
except:
- master
# PHP 7.3
build-php-7.3-master:
stage: deploy
......
FROM php:7.4-buster
LABEL maintainer="ethitter"
LABEL version="1.0"
RUN apt-get update \
&& apt-get -yqqf install lsb-release zip unzip rsync subversion git libicu-dev libpng-dev libbz2-dev default-libmysqlclient-dev libzip-dev libonig-dev --fix-missing --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mbstring mysqli intl gd zip bz2
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN chmod +x /usr/local/bin/composer
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
FROM php:8.0-buster
LABEL maintainer="ethitter"
LABEL version="1.0"
RUN apt-get update \
&& apt-get -yqqf install lsb-release zip unzip rsync subversion git libicu-dev libpng-dev libbz2-dev default-libmysqlclient-dev libzip-dev libonig-dev --fix-missing --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mbstring mysqli intl gd zip bz2
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN chmod +x /usr/local/bin/composer
ENV PATH=/root/.composer/vendor/bin:$HOME/.composer/vendor/bin:$PATH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment