2023-03-14 11:10:50 +00:00
|
|
|
composer-build:
|
|
|
|
|
stage: build
|
2026-04-21 10:42:42 +00:00
|
|
|
image: composer:2.9.7
|
2023-03-14 11:10:50 +00:00
|
|
|
before_script:
|
|
|
|
|
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
|
|
|
|
|
cache:
|
|
|
|
|
paths:
|
|
|
|
|
- vendor/
|
|
|
|
|
script:
|
2026-04-21 10:48:14 +00:00
|
|
|
- composer install --no-dev --optimize-autoloader --classmap-authoritative --no-scripts --ignore-platform-reqs
|
2023-03-14 11:10:50 +00:00
|
|
|
artifacts:
|
|
|
|
|
expose_as: 'vendor'
|
|
|
|
|
paths:
|
|
|
|
|
- vendor
|
2026-04-20 09:28:19 +00:00
|
|
|
allow_failure: true
|
2023-03-14 11:10:50 +00:00
|
|
|
dependencies:
|
|
|
|
|
- composer-security
|
|
|
|
|
needs:
|
|
|
|
|
- job: composer-security
|
|
|
|
|
optional: true
|
|
|
|
|
rules:
|
|
|
|
|
- if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"
|
2026-04-16 16:36:49 +02:00
|
|
|
- if: $CI_COMMIT_TAG != null
|