File tree Expand file tree Collapse file tree 4 files changed +72
-39
lines changed Expand file tree Collapse file tree 4 files changed +72
-39
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Ansible Galaxy import
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ jobs :
8+ galaxy :
9+ name : Galaxy
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Check out the codebase
13+ uses : actions/checkout@v2
14+
15+ - name : Set up Python 3
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ' 3.x'
19+
20+ - name : Install Ansible
21+ run : pip3 install ansible-base==2.10.3
22+
23+ - name : Import release to Ansible Galaxy
24+ run : ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
Original file line number Diff line number Diff line change 1+ ---
2+ name : Molecule CI/CD
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ schedule :
9+ - cron : " 0 0 1 * *"
10+ jobs :
11+ molecule :
12+ name : Molecule
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ scenario :
17+ - cleanup_module
18+ - default
19+ - plus
20+ - stable_push
21+ steps :
22+ - name : Check out the codebase
23+ uses : actions/checkout@v2
24+
25+ - name : Set up Python 3
26+ uses : actions/setup-python@v2
27+ with :
28+ python-version : ' 3.x'
29+
30+ - name : Install Molecule dependencies
31+ run : |
32+ pip3 install ansible-base==2.10.3
33+ pip3 install ansible==2.10.3
34+ pip3 install ansible-lint==4.3.7
35+ pip3 install yamllint==1.25.0
36+ pip3 install 'molecule[docker]'==3.2.1
37+ pip3 install docker==4.4.0
38+
39+ - name : Run Molecule tests
40+ run : molecule test -s ${{ matrix.scenario }}
41+ if : contains(${{ matrix.scenario }}, 'plus') && !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork)
42+ env :
43+ PY_COLORS : ' 1'
44+ ANSIBLE_FORCE_COLOR : ' 1'
45+ NGINX_CRT : ${{ secrets.NGINX_CRT }}
46+ NGINX_KEY : ${{ secrets.NGINX_KEY }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44
55ENHANCEMENTS:
66
7- Update Molecule to ` 3.2.0 ` and Docker Python SDK to ` 4.4.0 ` .
7+ * Update Molecule to ` 3.2.1 ` and Docker Python SDK to ` 4.4.0 ` .
8+ * Replace TravisCI with GitHub actions.
89
910BUG FIXES:
1011
You can’t perform that action at this time.
0 commit comments