Skip to content
Snippets Groups Projects
Commit 2e3adedc authored by jurgenhaas's avatar jurgenhaas
Browse files

gitlab-drupal-ci#20 Add support for PHP 8.2

parent d20cb606
No related branches found
No related tags found
1 merge request!24Merging develop into main [MINOR_VERSION]
...@@ -5,7 +5,7 @@ include: ...@@ -5,7 +5,7 @@ include:
variables: variables:
VERSION: ${CI_COMMIT_TAG} VERSION: ${CI_COMMIT_TAG}
CI_VERSION: v2.0.21 CI_VERSION: v2.1.0
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
...@@ -34,7 +34,7 @@ php: ...@@ -34,7 +34,7 @@ php:
stage: build stage: build
parallel: parallel:
matrix: matrix:
- PHP: ['7.4','8.0','8.1'] - PHP: ['7.4','8.0','8.1','8.2']
script: script:
- docker build --pull --build-arg PHP_VERSION=${PHP} --build-arg VERSION=${VERSION} --build-arg CI_VERSION=${CI_VERSION} -t ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION} . - docker build --pull --build-arg PHP_VERSION=${PHP} --build-arg VERSION=${VERSION} --build-arg CI_VERSION=${CI_VERSION} -t ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION} - docker push ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION}
......
...@@ -19,6 +19,8 @@ export PHP_VERSION=8.0 ...@@ -19,6 +19,8 @@ export PHP_VERSION=8.0
/usr/local/bin/update /usr/local/bin/update
export PHP_VERSION=8.1 export PHP_VERSION=8.1
/usr/local/bin/update /usr/local/bin/update
export PHP_VERSION=8.2
/usr/local/bin/update
echo "Cleaning old container" echo "Cleaning old container"
docker kill l3drun >/dev/null docker kill l3drun >/dev/null
...@@ -4,7 +4,7 @@ function getConfig() { ...@@ -4,7 +4,7 @@ function getConfig() {
if [[ ! -n ${PHP_VERSION} ]]; then if [[ ! -n ${PHP_VERSION} ]]; then
while true; do while true; do
DEFAULT=8.1 DEFAULT=8.1
read -p "WhIich PHP version is your project using [7.1 - 7.4, 8.0 - 8.1]? " VALUE read -p "WhIich PHP version is your project using [7.4, 8.0, 8.1, 8.2]? " VALUE
if [[ "x$VALUE" == "x" ]]; then if [[ "x$VALUE" == "x" ]]; then
PHP_VERSION=$DEFAULT PHP_VERSION=$DEFAULT
else else
...@@ -18,6 +18,7 @@ function getConfig() { ...@@ -18,6 +18,7 @@ function getConfig() {
7.4) break ;; 7.4) break ;;
8.0) break ;; 8.0) break ;;
8.1) break ;; 8.1) break ;;
8.2) break ;;
*) echo "Version not supported." ;; *) echo "Version not supported." ;;
esac esac
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment