ldc-shared-ci/build/composer7.3.yml

24 lines
712 B
YAML
Raw Permalink Normal View History

2023-03-14 11:10:50 +00:00
composer-build:
stage: build
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
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"
- if: $CI_COMMIT_TAG != null