Build images with PHP 8.5 and Vite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3926b26ae7
commit
2e4abca455
3 files changed
+5
-8
No files matched your search
@@ -19,13 +19,13 @@ jobs:
|
|||||||
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
|
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Install Dependencies and Build Assets
|
- name: Install Dependencies and Build Assets
|
||||||
uses: docker://chill/base-image:8.4-edge
|
uses: docker://chill/base-image:8.5-edge
|
||||||
env:
|
env:
|
||||||
APP_ENV: prod
|
APP_ENV: prod
|
||||||
with:
|
with:
|
||||||
entrypoint: /bin/sh
|
entrypoint: /bin/sh
|
||||||
# We install node/yarn inside the PHP container to ensure translations are available
|
# We install node/npm inside the PHP container: the Vite build needs the translations dumped by cache:warmup
|
||||||
args: -c "apk add --no-cache nodejs yarn && composer install --no-scripts --no-interaction && bin/console cache:clear && yarn install && yarn run encore production"
|
args: -c "apk add --no-cache nodejs npm && composer install --no-scripts --no-interaction && bin/console cache:warmup && npm ci && npm run build"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'''
|
cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'''
|
||||||
- name: run composer update to update composer.lock
|
- name: run composer update to update composer.lock
|
||||||
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
|
uses: docker://chill/base-image:8.5-edge
|
||||||
with:
|
with:
|
||||||
# this is where we set the command to execute
|
# this is where we set the command to execute
|
||||||
args: composer update --no-install
|
args: composer update --no-install
|
||||||
|
|||||||
+1
-4
@@ -1,4 +1,4 @@
|
|||||||
FROM chill/base-image:8.4-edge
|
FROM chill/base-image:8.5-edge
|
||||||
|
|
||||||
# copy directories with ownership for the unprivileged runtime user
|
# copy directories with ownership for the unprivileged runtime user
|
||||||
COPY --chown=www-data:www-data ./bin /var/www/app/bin/.
|
COPY --chown=www-data:www-data ./bin /var/www/app/bin/.
|
||||||
@@ -13,9 +13,6 @@ COPY --chown=www-data:www-data ./vendor /var/www/app/vendor/.
|
|||||||
|
|
||||||
COPY --chown=www-data:www-data ./.env /var/www/app/.env
|
COPY --chown=www-data:www-data ./.env /var/www/app/.env
|
||||||
|
|
||||||
# import the manifest.json file
|
|
||||||
COPY --chown=www-data:www-data ./public/build/manifest.json /var/www/app/public/build/manifest.json
|
|
||||||
|
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
# - mark entrypoint executable
|
# - mark entrypoint executable
|
||||||
|
|||||||
Reference in new issue
Block a user