-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#147: Allow to run Ansible pre/post playbooks during CI build
- Loading branch information
Showing
4 changed files
with
78 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This is a playbook that runs after a successful build of the application. | ||
# To do something before the build create the "pre-deploy.yml" that'll have | ||
# the same set of input variables but will run early, before any other tasks. | ||
# | ||
# Available variables: | ||
# - dist: an absolute path to the project's destination; | ||
# - env: a name of the environment being built; | ||
# - site-url: a URL of a website being built; | ||
# - build-id: an ID of CI build; | ||
# - workspace: an absolute path to the sandbox directory on CI server. | ||
--- | ||
- hosts: localhost | ||
gather_facts: no | ||
connection: local | ||
become: yes | ||
|
||
tasks: | ||
- name: Move reports to the website directory | ||
shell: "cp -r {{ workspace }}/docroot/reports/ {{ dist }}/docroot" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters