ldc-shared-ci/build/composer.yml

28 lines
808 B
YAML
Raw Permalink Normal View History

composer-build:
stage: build
2026-08-21 12:37:08 +02:00
image: composer:2.10
cache:
2026-08-21 12:37:08 +02:00
key:
files:
- composer.lock
paths:
- vendor/
2026-08-21 12:37:08 +02:00
policy: pull-push
before_script:
- composer config gitlab-token.lab.s-web.fr "${CI_DEPLOY_USER}" "${CI_DEPLOY_PASSWORD}"
script:
2026-08-21 12:37:08 +02:00
- composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --no-dev --prefer-dist
artifacts:
2026-08-21 12:37:08 +02:00
paths:
- vendor/
expire_in: 1h
dependencies:
- composer-security
needs:
- job: composer-security
optional: true
2026-08-21 12:37:08 +02:00
allow_failure: false
rules:
- if: $CI_COMMIT_BRANCH == "trunk" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"
2026-08-21 12:37:08 +02:00
- if: $CI_COMMIT_TAG != null