Skip to content
Snippets Groups Projects
Commit 805281ef authored by Fabien Zucchet's avatar Fabien Zucchet
Browse files

better this way

parent 5a72e0c8
Branches
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ stages:
##### PROD-DEPLOY STAGE #####
################################################################################
back-prod-deploy:
prod-deploy:
stage: deploy
only:
- master
......@@ -20,26 +20,7 @@ back-prod-deploy:
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- >
ssh root@leaderboard.cs-campus.fr
"cd leaderboard/back &&
git stash &&
git checkout master &&
git stash &&
git pull"
front-prod-deploy:
stage: deploy
only:
- master
script:
- "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )"
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- >
ssh root@leaderboard.cs-campus.fr
"cd leaderboard/front_thomas &&
"cd leaderboard &&
git stash &&
git checkout master &&
git stash &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment