Skip to content

Commit

Permalink
test: gitlab-ci: add pull to dev and deploy to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Jul 19, 2017
1 parent 78aa48e commit c6f5436
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,24 @@
test:
script:
- molecule test

pull_role:
stage: build
tags:
- dev
script:
- if [ -z "$ANSIBLE_SERVER_PATH" ]; then exit 1; fi
- rsync -r "$PWD/" "$ANSIBLE_SERVER_PATH/../$CI_PROJECT_NAME/"
#- cd $ANSIBLE_SERVER_PATH && git pull origin master
only:
- master

"adeploy server-scripts":
tags:
- prod
stage: deploy
script:
- ANSIBLE_STDOUT_CALLBACK=actionable ansible-deploy server-scripts --ssh-common-args="-i /srv/docker/gitlab/keys/prod/id_rsa"
when: manual
only:
- master

0 comments on commit c6f5436

Please sign in to comment.