Skip to content

Commit 04188eb

Browse files
committed
docs
1 parent 917a715 commit 04188eb

File tree

1 file changed

+14
-8
lines changed
  • utility/gitlab-ci/commit-playbook-zip

1 file changed

+14
-8
lines changed
Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
# Commit Zip to Branch
2-
When working with ansible playbook with multiple files, a zip archive needs to be committed to repo.
1+
# Auto Generate Ansible Archive
2+
3+
When working
4+
with [cloudshell ansible playbooks](https://help.quali.com/Online%20Help/0.0/Portal/Content/DevGuide/Config-Mng/Ansible.htm?tocpath=The%20CloudShell%20DevGuide%7CDeveloping%20Configuration%20Management%20Scripts%20for%20Apps%7CAnsible%20Playbook%20Development%20for%20Apps%7C_____0)
5+
with site.yml and multiple files, a zip archive needs to be committed to repo.
36

47
Some options to handle this pain point:
8+
59
1. Create zip locally on dev machine and push source changes and zip together
6-
2. Push source code, and have [gitlab-CI](commit-back-repo-gitlab-ci.yml) job detect change to playbook folder source code, create zip and commit
10+
2. Push source code, and have [gitlab-CI](commit-back-repo-gitlab-ci.yml) job detect change to playbook folder source
11+
code, create zip and commit
712
- create access token for project and add as CI variable
813
- this will create an additional commit to history
914
- this also adds binary file into repo
1015
- need to remember to pull down the new "zip" commit before pushing new changes
11-
3. Have similar [CI job](zip-and-push-to-IIS-gitlab-ci.yml) detect change and generate zip, but push to external web server hosting instead of commiting binary
12-
- this adds dependency of setting up another web server (can also use cloudshell IIS server)
13-
- Can pass in branch name to name of zip to have different hosted zips for testing
14-
- Firewall rules can be placed on IIS to only allow downloads from the Execution Server
15-
- cleaner option in terms of git history and storage
16+
3. Have similar [CI job](zip-and-push-to-IIS-gitlab-ci.yml) detect change and generate zip, but push to external web
17+
server hosting instead of commiting binary
18+
- this adds dependency of setting up another web server (can also use cloudshell IIS server)
19+
- Can pass in branch name to name of zip to have different hosted zips for testing
20+
- Firewall rules can be placed on IIS to only allow downloads from the Execution Server
21+
- cleaner option in terms of git history and storage
1622

1723

0 commit comments

Comments
 (0)