Skip to content
Snippets Groups Projects
Commit f5592c20 authored by Sebastian Pisula's avatar Sebastian Pisula
Browse files

Merge branch 'feature/php-8.2' into 'main'

feature(core): php 8.2

See merge request !15
parents 7e3adad4 a51c9ac8
No related branches found
No related tags found
1 merge request!15feature(core): php 8.2
Pipeline #310600 failed with stage
in 1 minute and 41 seconds
...@@ -25,6 +25,9 @@ stages: ...@@ -25,6 +25,9 @@ stages:
script: script:
- cd Docker/php-8.1 - cd Docker/php-8.1
- sh ./build.sh - sh ./build.sh
- cd ..
- cd Docker/php-8.2
- sh ./build.sh
build: build:
<<: *build-template <<: *build-template
......
FROM php:8.2-cli
RUN apt-get update && apt-get install -y git libzip-dev zip libicu-dev && docker-php-ext-install zip && docker-php-ext-install bcmath && docker-php-ext-configure intl && docker-php-ext-install intl \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer
#!/bin/bash
TAG=1
docker build -t $IMAGE_TAG/php-8.2:$TAG .
docker push $IMAGE_TAG/php-8.2:$TAG
\ No newline at end of file
...@@ -36,7 +36,7 @@ stages: ...@@ -36,7 +36,7 @@ stages:
- npm config set -- //${CI_SERVER_HOST}/:_authToken=${PREDATORS_DEPLOY_TOKEN} - npm config set -- //${CI_SERVER_HOST}/:_authToken=${PREDATORS_DEPLOY_TOKEN}
- npm config set @octolize:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/ - npm config set @octolize:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm config list - npm config list
- npm install - npm ci
- npm run build - npm run build
.template: &deploy-template .template: &deploy-template
...@@ -55,7 +55,7 @@ stages: ...@@ -55,7 +55,7 @@ stages:
- ls -al - ls -al
- ssh-keyscan -H -p 222 $DEPLOY_HOST >> ~/.ssh/known_hosts - ssh-keyscan -H -p 222 $DEPLOY_HOST >> ~/.ssh/known_hosts
- rsync -v --delete -rlDe 'ssh -p 222 -v -i ~/.ssh/id_rsa_demo_fs' --exclude-from=.distignore ${CI_PROJECT_DIR}/web/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR - rsync -v --delete -rlDe 'ssh -p 222 -v -i ~/.ssh/id_rsa_demo_fs' --exclude-from=.distignore ${CI_PROJECT_DIR}/web/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR
- ssh -p 222 -i ~/.ssh/id_rsa_demo_fs $DEPLOY_USER@$DEPLOY_HOST "cd $DEPLOY_DIR && mv frontend/dist/assets/ public/ && mv frontend/dist/index.html public/index.html && php81 bin/console doctrine:migrations:migrate --no-interaction && php81 bin/console cache:clear && $RUN_AFTER_DEPLOY" - ssh -p 222 -i ~/.ssh/id_rsa_demo_fs $DEPLOY_USER@$DEPLOY_HOST "cd $DEPLOY_DIR && mv frontend/dist/assets/ public/ && mv frontend/dist/index.html public/index.html && php82 bin/console doctrine:migrations:migrate --no-interaction && php82 bin/console cache:clear && $RUN_AFTER_DEPLOY"
after_script: after_script:
- $DEPLOY_AFTER_SCRIPT - $DEPLOY_AFTER_SCRIPT
...@@ -84,7 +84,7 @@ composer install: ...@@ -84,7 +84,7 @@ composer install:
name: "vendor" name: "vendor"
paths: paths:
- web/vendor - web/vendor
image: gitlab.wpdesk.dev:5050/wpdesk/predators/shopify/tools/gitlab-ci/php-8.1:1 image: gitlab.wpdesk.dev:5050/wpdesk/predators/shopify/tools/gitlab-ci/php-8.2:1
tags: tags:
- vendor - vendor
stage: build stage: build
......
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