Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab CI/CD
Drupal
Commits
eef29276
Commit
eef29276
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#4
Make variable SSH_PRIVATE_KEY optional
parent
b9605070
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test-and-deploy.yml
+26
-20
26 additions, 20 deletions
test-and-deploy.yml
with
26 additions
and
20 deletions
test-and-deploy.yml
+
26
−
20
View file @
eef29276
...
@@ -94,26 +94,32 @@ stages:
...
@@ -94,26 +94,32 @@ stages:
cache
:
cache
:
<<
:
*cache_default
<<
:
*cache_default
policy
:
pull-push
policy
:
pull-push
script
:
script
:
|
-
eval $(ssh-agent -s)
if [[ -n $SSH_PRIVATE_KEY ]]; then
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
eval $(ssh-agent -s)
-
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
-
chmod 700 ~/.ssh
mkdir -p ~/.ssh
-
ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts
chmod 700 ~/.ssh
-
chmod 644 ~/.ssh/known_hosts
ssh-keyscan gitlab.lakedrops.com >> ~/.ssh/known_hosts
-
ssh git@gitlab.lakedrops.com
chmod 644 ~/.ssh/known_hosts
-
if [[ -n $DOWNGRADE_COMPOSER ]]; then composer self-update --$DOWNGRADE_COMPOSER; fi
ssh git@gitlab.lakedrops.com
-
if [[ -n $GITLAB_ACCESS_TOKEN ]]; then composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN; fi
fi
-
composer install --no-interaction --no-progress
if [[ -n $DOWNGRADE_COMPOSER ]]; then
-
composer lakedrops:scaffold --no-interaction
composer self-update --$DOWNGRADE_COMPOSER;
-
composer lakedrops:docker4drupal --no-interaction
fi
-
docker-compose up -d
if [[ -n $GITLAB_ACCESS_TOKEN ]]; then
-
composer lakedrops:behat --no-interaction
composer config -g gitlab-token.gitlab.lakedrops.com $GITLAB_ACCESS_TOKEN;
-
mkdir -p files/default/files/css
fi
-
mkdir -p files/default/files/js
composer install --no-interaction --no-progress
-
mkdir -p files/default/files/languages
composer lakedrops:scaffold --no-interaction
-
mkdir -p files/default/files/translations
composer lakedrops:docker4drupal --no-interaction
-
chmod -R ugo+w files/default/files/
docker-compose up -d
composer lakedrops:behat --no-interaction
mkdir -p files/default/files/css
mkdir -p files/default/files/js
mkdir -p files/default/files/languages
mkdir -p files/default/files/translations
chmod -R ugo+w files/default/files/
artifacts
:
artifacts
:
name
:
build
name
:
build
when
:
always
when
:
always
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment