From b6b0d2d2a62fdefc545f8ce22b69c49db36a7cb8 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Fri, 4 Aug 2023 13:49:59 +0000 Subject: [PATCH] add composer bedrock --- build/composer-bedrock.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 build/composer-bedrock.yml diff --git a/build/composer-bedrock.yml b/build/composer-bedrock.yml new file mode 100644 index 0000000..f5c7fe5 --- /dev/null +++ b/build/composer-bedrock.yml @@ -0,0 +1,25 @@ +composer-build: + stage: build + image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/ldcweb-qa:php8.1-1.0 + before_script: + - composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD + - composer config http-basic.connect.advancedcustomfields.com $APP_ACF_USER $APP_ACF_PWD + cache: + paths: + - vendor/ + script: + - composer install --no-dev --optimize-autoloader --classmap-authoritative + artifacts: + expose_as: 'vendor' + paths: + - vendor + allow_failure: false + dependencies: + - composer-security + needs: + - job: composer-security + optional: true + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main" + - if: $CI_COMMIT_TAG != null \ No newline at end of file