2023-02-17 12:19:49 +00:00
|
|
|
composer-build:
|
|
|
|
|
stage: build
|
2026-08-21 12:37:08 +02:00
|
|
|
image: composer:2.10
|
2023-02-17 12:19:49 +00:00
|
|
|
cache:
|
2026-08-21 12:37:08 +02:00
|
|
|
key:
|
|
|
|
|
files:
|
|
|
|
|
- composer.lock
|
2023-02-17 12:19:49 +00:00
|
|
|
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}"
|
2023-02-17 12:19:49 +00:00
|
|
|
script:
|
2026-08-21 12:37:08 +02:00
|
|
|
- composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --no-dev --prefer-dist
|
2023-02-17 12:19:49 +00:00
|
|
|
artifacts:
|
2026-08-21 12:37:08 +02:00
|
|
|
paths:
|
|
|
|
|
- vendor/
|
|
|
|
|
expire_in: 1h
|
2023-03-02 17:24:55 +00:00
|
|
|
dependencies:
|
2023-03-02 17:26:23 +00:00
|
|
|
- composer-security
|
2023-03-02 17:24:55 +00:00
|
|
|
needs:
|
|
|
|
|
- job: composer-security
|
|
|
|
|
optional: true
|
2026-08-21 12:37:08 +02:00
|
|
|
allow_failure: false
|
2023-02-17 12:19:49 +00:00
|
|
|
rules:
|
2023-03-03 14:18:27 +00:00
|
|
|
- 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
|