Skip to content

Commit

Permalink
Add php8.1 build
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Frömer <andreas.froemer@check24.de>
  • Loading branch information
Andreas Frömer authored and icanhazstring committed Dec 14, 2021
1 parent dc22ae0 commit f7778fd
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .docker/php7.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM php:7.4-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/bin/
RUN chmod +x /usr/bin/install-php-extensions
RUN install-php-extensions ds xdebug opcache

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand Down
3 changes: 2 additions & 1 deletion .docker/php8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM php:8.0-alpine

COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/bin/
RUN chmod +x /usr/bin/install-php-extensions
RUN install-php-extensions ds xdebug opcache

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand Down
12 changes: 12 additions & 0 deletions .docker/php8.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:8.1-alpine

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/bin/
RUN chmod +x /usr/bin/install-php-extensions
RUN install-php-extensions ds xdebug opcache

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1

WORKDIR /docker
# Workaround to keep container running
CMD ["tail", "-f", "/dev/null"]
22 changes: 8 additions & 14 deletions .github/workflows/validate-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest"]
php: ["7.4"]
os: [ "ubuntu-latest" ]
php: [ "7.4" ]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
Expand All @@ -37,8 +37,8 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["7.4"]
os: ["ubuntu-latest"]
php: [ "7.4" ]
os: [ "ubuntu-latest" ]
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
Expand All @@ -63,12 +63,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["7.4", "8.0"]
os: ["ubuntu-latest"]
experimental: [false]
include:
- php: "8.0"
composer-options: "--ignore-platform-req=php"
php: [ "7.4", "8.0", "8.1" ]
os: [ "ubuntu-latest" ]
experimental: [ false ]

steps:
- name: Checkout
Expand All @@ -93,11 +90,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "7.4", "8.0" ]
php: [ "7.4", "8.0", "8.1" ]
os: [ "ubuntu-latest" ]
include:
- php: "8.0"
composer-options: "--ignore-platform-req=php"
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"require": {
"php": ">=7.3 || ^8.0",
"php": ">=7.3",
"composer-plugin-api": "^2.0",
"composer-unused/symbol-parser": "^0.1.3",
"nikic/php-parser": "^4.13",
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ services:
- .:/docker/composer-unused:rw
- ../symbol-parser:/docker/symbol-parser:rw
tty: true

php8.1:
build: .docker/php8.1
container_name: composer-unused-8.1
volumes:
- .:/docker/composer-unused:rw
- ../symbol-parser:/docker/symbol-parser:rw
tty: true

0 comments on commit f7778fd

Please sign in to comment.