I
I
Igor2021-01-29 04:00:27
GitLab
Igor, 2021-01-29 04:00:27

Gitlab CI/CD crashes on composer install command?

stage

deploy:
  stage: deploy
  image: docker/compose:1.27.4
  variables:
    DOCKER_HOST: tcp://84.201.160.194:2376
  before_script:
    - docker login -u $GITLAB_USER_LOGIN -p $REGISTRY_TOKEN $CI_REGISTRY
  script:
    - docker-compose -f docker-compose-ci.yml up -d
    - docker-compose -f docker-compose-ci.yml exec -T app sh -c "composer install --no-progress --no-interaction --ignore-platform-reqs --quiet --no-interaction --prefer-dist"
    - cat $SYMFONY_ENV > ./.env
  only:
    - develop


falls on
- docker-compose -f docker-compose-ci.yml exec -T app sh -c "composer install --no-progress --no-interaction --ignore-platform-reqs --quiet --no-interaction --prefer-dist"


How to overcome the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question