From 393c0de98bd969cc596e5ef8a9ccc55938fc7bed Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 9 Nov 2020 10:15:33 +0100
Subject: [PATCH] Add composer gitlab authentication if available

---
 test-and-deploy.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index a6c72d7..b2afdda 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 [ -z $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
     - composer lakedrops:docker4drupal --no-interaction
-- 
GitLab