Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
A
accessnowguides
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Access Now Helpline
accessnowguides
Commits
d447bd77
Commit
d447bd77
authored
Oct 24, 2019
by
Floriana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated CI script
parent
8d20ef71
Pipeline
#91228634
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
35 deletions
+11
-35
.gitlab-ci.yml
.gitlab-ci.yml
+11
-35
No files found.
.gitlab-ci.yml
View file @
d447bd77
image
:
ruby:2.3
job1
:
before_script
:
-
export LC_ALL="C.UTF-8"
-
export LANG="en_US.UTF-8"
-
export LANGUAGE="en_US.UTF-8"
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
pages
:
#
before_script:
#
- export LC_ALL="C.UTF-8"
#
- export LANG="en_US.UTF-8"
#
- export LANGUAGE="en_US.UTF-8"
#
- eval $(ssh-agent -s)
#
- ssh-add <(echo "$SSH_PRIVATE_KEY")
#
- mkdir -p ~/.ssh
#
- chmod 700 ~/.ssh
# next command is suggested here: https://stackoverflow.com/questions/25689231/getting-gitlab-ci-to-clone-private-repositories
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
stage
:
deploy
#
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
#
stage: deploy
script
:
-
gem install bundler
-
bundle install
-
bundle exec jekyll build -d public
-
scp -r public/* git@guides.accessnow.org:/home/git/helplinedocs
artifacts
:
paths
:
-
public
only
:
-
master
job2
:
before_script
:
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
stage
:
deploy
script
:
-
mkdir temp/
-
./select.sh
-
git clone git@gitlab.com:AccessNowHelpline/community-documentation.git
-
cd community-documentation
-
git config --local user.email "docs@accessnow.org"
-
git config --local user.name "Access Now Helpline"
-
git checkout drafts
-
cp ../temp/* pages/mydoc/
-
git add pages/mydoc/*
-
if [ $(git status --porcelain | wc -l) -ne 0 ]; then git commit -a -m "automatic push from confidential repository" && git push; fi
only
:
-
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment