File tree Expand file tree Collapse file tree 4 files changed +131
-0
lines changed
provisioning/roles/geerlingguy.adminer Expand file tree Collapse file tree 4 files changed +131
-0
lines changed Original file line number Diff line number Diff line change 1+ skip_list:
2+ - 'yaml'
3+ - 'role-name'
Original file line number Diff line number Diff line change 1+ ---
2+ name : CI
3+ ' on ' :
4+ pull_request :
5+ push :
6+ branches :
7+ - master
8+ schedule :
9+ - cron : " 0 5 * * 0"
10+
11+ defaults :
12+ run :
13+ working-directory : ' geerlingguy.adminer'
14+
15+ jobs :
16+
17+ lint :
18+ name : Lint
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Check out the codebase.
22+ uses : actions/checkout@v2
23+ with :
24+ path : ' geerlingguy.adminer'
25+
26+ - name : Set up Python 3.
27+ uses : actions/setup-python@v2
28+ with :
29+ python-version : ' 3.x'
30+
31+ - name : Install test dependencies.
32+ run : pip3 install yamllint
33+
34+ - name : Lint code.
35+ run : |
36+ yamllint .
37+
38+ molecule :
39+ name : Molecule
40+ runs-on : ubuntu-latest
41+ strategy :
42+ matrix :
43+ include :
44+ - distro : centos7
45+ playbook : converge.yml
46+ - distro : ubuntu2004
47+ playbook : converge.yml
48+ - distro : debian10
49+ playbook : converge.yml
50+ - distro : centos7
51+ playbook : standalone.yml
52+
53+ steps :
54+ - name : Check out the codebase.
55+ uses : actions/checkout@v2
56+ with :
57+ path : ' geerlingguy.adminer'
58+
59+ - name : Set up Python 3.
60+ uses : actions/setup-python@v2
61+ with :
62+ python-version : ' 3.x'
63+
64+ - name : Install test dependencies.
65+ run : pip3 install ansible molecule[docker] docker
66+
67+ - name : Run Molecule tests.
68+ run : molecule test
69+ env :
70+ PY_COLORS : ' 1'
71+ ANSIBLE_FORCE_COLOR : ' 1'
72+ MOLECULE_DISTRO : ${{ matrix.distro }}
73+ MOLECULE_PLAYBOOK : ${{ matrix.playbook }}
Original file line number Diff line number Diff line change 1+ ---
2+ # This workflow requires a GALAXY_API_KEY secret present in the GitHub
3+ # repository or organization.
4+ #
5+ # See: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy
6+ # See: https://github.com/ansible/galaxy/issues/46
7+
8+ name : Release
9+ ' on ' :
10+ push :
11+ tags :
12+ - ' *'
13+
14+ defaults :
15+ run :
16+ working-directory : ' geerlingguy.adminer'
17+
18+ jobs :
19+
20+ release :
21+ name : Release
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Check out the codebase.
25+ uses : actions/checkout@v2
26+ with :
27+ path : ' geerlingguy.adminer'
28+
29+ - name : Set up Python 3.
30+ uses : actions/setup-python@v2
31+ with :
32+ python-version : ' 3.x'
33+
34+ - name : Install Ansible.
35+ run : pip3 install ansible-base
36+
37+ - name : Trigger a new import on Galaxy.
38+ 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 : Converge
3+ hosts : all
4+ become : true
5+
6+ vars :
7+ adminer_install_dir : /opt/adminer
8+ adminer_add_apache_config : false
9+
10+ pre_tasks :
11+ - name : Update apt cache.
12+ apt : update_cache=yes cache_valid_time=600
13+ when : ansible_os_family == 'Debian'
14+ changed_when : false
15+
16+ roles :
17+ - role : geerlingguy.adminer
You can’t perform that action at this time.
0 commit comments