Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
42e9bc58
Commit
42e9bc58
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
ansible wip
Former-commit-id: 53715befb8b9dc36a5f79c90abcb6ddaf904108d
parent
50be08b9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-1
12 additions, 1 deletion
.gitlab-ci.yml
with
12 additions
and
1 deletion
.gitlab-ci.yml
+
12
−
1
View file @
42e9bc58
...
...
@@ -14,10 +14,21 @@ test-centos7:
-
python3 manage.py test
deploy-webserver
:
stage
:
deploy
before_script
:
# install ssh-agent
-
'
which
ssh-agent
||
(
yum
-y
install
openssh-clients
)'
# run ssh-agent
-
eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
-
mkdir -p ~/.ssh
-
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script
:
-
yum install -y epel-release
-
yum install -y gcc
-
yum install
install -y
python34-pip python34-devel
-
yum install python34-pip python34-devel
-
pip3 install ansible
-
cd ansible
-
ansible-playbook -vvv -i ./hosts deploy.yaml --extra-vars "deploy_user_name=ippidb repo_api_token=JZS-4cH7bWkFkHa2rAVf"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
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