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

#110 A support for PHP 8.1

parent a06029e6
No related branches found
Tags v2.3.0
No related merge requests found
......@@ -22,50 +22,13 @@ run:
only:
- tags
php-7.0:
php:
stage: build
parallel:
matrix:
- PHP: ['7.0','7.1','7.2','7.3','7.4','8.0','8.1']
script:
- docker build --pull --build-arg PHP_VERSION=7.0 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-7.0:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-7.0:${VERSION}
only:
- tags
php-7.1:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.1 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-7.1:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-7.1:${VERSION}
only:
- tags
php-7.2:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.2 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-7.2:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-7.2:${VERSION}
only:
- tags
php-7.3:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.3 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-7.3:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-7.3:${VERSION}
only:
- tags
php-7.4:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=7.4 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-7.4:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-7.4:${VERSION}
only:
- tags
php-8.0:
stage: build
script:
- docker build --pull --build-arg PHP_VERSION=8.0 --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-8.0:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-8.0:${VERSION}
- docker build --pull --build-arg PHP_VERSION=${PHP} --build-arg VERSION=${VERSION} -t ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION} .
- docker push ${CI_REGISTRY_IMAGE}/php-${PHP}:${VERSION}
only:
- tags
......@@ -17,6 +17,8 @@ export PHP_VERSION=7.4
/usr/local/bin/update
export PHP_VERSION=8.0
/usr/local/bin/update
export PHP_VERSION=8.1
/usr/local/bin/update
echo "Cleaning old container"
docker kill l3drun >/dev/null
......@@ -11,6 +11,7 @@ function getConfig() {
7.3) break ;;
7.4) break ;;
8.0) break ;;
8.1) break ;;
*) echo "Version not supported." ;;
esac
done
......
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