diff --git a/.docker/new-symfony.sh b/.docker/new-symfony.sh new file mode 100644 index 0000000..f1fc844 --- /dev/null +++ b/.docker/new-symfony.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -eu -o pipefail + +directory="$1" + +# Delete existing symfony project +rm -rf "$directory/symfony" +cd "$directory" + +echo "Installation of symfony project with $SYMFONY_VERSION version" +symfony new symfony --no-git --version="$SYMFONY_VERSION" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 08404d3..203db82 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,13 +18,17 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.1'] + php: ['8.1', '8.2'] composer: ['2'] - symfony: ['6.3'] + symfony: ['6.4'] latest: [false] include: + - php: 8.1 + symfony: 7.0 + composer: 2 + latest: false - php: 8.2 - symfony: 6.3 + symfony: 7.0 composer: 2 latest: true name: "[Package] SF v${{ matrix.symfony }} PHP ${{ matrix.php }}" @@ -77,7 +81,7 @@ jobs: matrix: php: ['8.1', '8.2'] composer: ['2'] - symfony: ['6.3'] + symfony: ['6.4', '7.0'] needs: packaging runs-on: ubuntu-latest name: "[Run] SF v${{ matrix.symfony }} PHP ${{ matrix.php }}" diff --git a/Dockerfile b/Dockerfile index b1d9f59..d7af9ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ -ARG PHP_VERSION=8 +ARG PHP_VERSION=8.2 ARG COMPOSER_VERSION=2 FROM composer:${COMPOSER_VERSION} as composer FROM php:${PHP_VERSION}-fpm-alpine -ARG PHP_VERSION=8 ENV PHP_VERSION $PHP_VERSION -ARG COMPOSER_VERSION=2 ENV COMPOSER_VERSION $COMPOSER_VERSION -ARG SYMFONY_VERSION=6.2 +ARG SYMFONY_VERSION=6.4 ENV SYMFONY_VERSION $SYMFONY_VERSION COPY --from=composer /usr/bin/composer /usr/bin/composer @@ -23,6 +21,9 @@ RUN apk add --no-cache icu-dev \ COPY .docker/docker-symfony-golden.ini /usr/local/etc/php/conf.d/ ### END SYMFONY REQUIREMENT +COPY ./.docker/new-symfony.sh /usr/local/bin/new-symfony +RUN chmod +x /usr/local/bin/new-symfony + ## SYMFONY CLI INSTALL RUN apk add --no-cache bash git RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.alpine.sh' | bash @@ -33,9 +34,7 @@ RUN apk add symfony-cli HEALTHCHECK --interval=5s --timeout=3s --retries=3 CMD symfony check:req || exit 1 # END HEALTHCHECK -WORKDIR /var/www - -RUN symfony new symfony --no-git --version="$SYMFONY_VERSION" +RUN new-symfony "/var/www" WORKDIR /var/www/symfony diff --git a/README.md b/README.md index 84d12c6..cce5a45 100644 --- a/README.md +++ b/README.md @@ -19,21 +19,31 @@ List of docker images available by Symfony and PHP versions:
ghcr.io/devgine/symfony-golden:latest
ghcr.io/devgine/symfony-golden:v7.0-php8.2-alpine
+ ghcr.io/devgine/symfony-golden:v7.0-php8.1-alpine
ghcr.io/devgine/symfony-golden:latest
ghcr.io/devgine/symfony-golden:v6.4-php8.2-alpine
+ ghcr.io/devgine/symfony-golden:v6.4-php8.1-alpine
ghcr.io/devgine/symfony-golden:latest
ghcr.io/devgine/symfony-golden:v6.3-php8.1-alpine
ghcr.io/devgine/symfony-golden:v6.2-php8.2-alpine
ghcr.io/devgine/symfony-golden:v6.2-php8.1-alpine
ghcr.io/devgine/symfony-golden:v6.1-php8.2-alpine
ghcr.io/devgine/symfony-golden:v6.1-php8.1-alpine
ghcr.io/devgine/symfony-golden:v5.4-php8.2-alpine