Skip to content

Instantly share code, notes, and snippets.

@akirill0v
Created December 22, 2015 12:36
Show Gist options
  • Save akirill0v/689fcad77cd5da5f80ba to your computer and use it in GitHub Desktop.
Save akirill0v/689fcad77cd5da5f80ba to your computer and use it in GitHub Desktop.
deploy:
- shell:
- echo $(ansible --version)
- cd ansible && erb secret.yml.erb > secret.yml
- ./bin/ansible-play -vvv -l production -t deploy -e revision=$CI_BUILD_SHA
branch: master
- shell:
- echo $(ansible --version)
- cd ansible && erb secret.yml.erb > secret.yml
- ./bin/ansible-play -vvv -l staging -t deploy -e revision=$CI_BUILD_SHA
branch: staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment