From cb9f12ef94b5b5211cb3e1c01bbc89ec735bfe40 Mon Sep 17 00:00:00 2001 From: Daniel Speicher <daniel.speicher@bitegra-solutions.de> Date: Fri, 13 Nov 2020 11:19:01 +0100 Subject: [PATCH] Use optional downgrade variable for composer version --- test-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/test-and-deploy.yml b/test-and-deploy.yml index 5333dc8..66ab124 100644 --- a/test-and-deploy.yml +++ b/test-and-deploy.yml @@ -62,6 +62,7 @@ stages: - ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - ssh git@gitlab.lakedrops.com + - if [ -n $DOWNGRADE_COMPOSER ]; then composer self-update --1; fi - if [ -n $GITLAB_ACCESS_TOKEN ]; then composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN; fi - composer install --no-interaction --no-progress - composer lakedrops:scaffold --no-interaction -- GitLab