Add deploy job
This commit is contained in:
parent
3447f8446e
commit
afd68fe068
|
@ -27,11 +27,32 @@ jobs:
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: ~/phpunit
|
path: ~/phpunit
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker:
|
||||||
|
- image: ansible/ansible:ubuntu1604
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Install system packages.
|
||||||
|
command: pip install --upgrade pip && pip install ansible
|
||||||
|
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
key: v1-{{ .Branch }}-{{ checksum 'requirements.yml' }}
|
||||||
|
|
||||||
|
- run ansible-galaxy install -r ansible/requirements.yml
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: v1-{{ .Branch }}-{{ checksum 'requirements.yml' }}
|
||||||
|
paths:
|
||||||
|
- '/root/.ansible/roles'
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_test_and_deploy:
|
build_test_and_deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
- deploy
|
||||||
nightly:
|
nightly:
|
||||||
jobs:
|
jobs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
|
|
Loading…
Reference in a new issue