mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-02 08:10:18 +01:00
Merge pull request #219 from geerlingguy/201-convert-to-gh-actions
201 convert to gh actions
This commit is contained in:
commit
5b2e65d298
5 changed files with 9 additions and 12 deletions
|
@ -1,2 +1,3 @@
|
||||||
skip_list:
|
skip_list:
|
||||||
- '106'
|
- 'yaml'
|
||||||
|
- 'role-name'
|
||||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -29,12 +29,11 @@ jobs:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install test dependencies.
|
- name: Install test dependencies.
|
||||||
run: pip3 install yamllint ansible-lint
|
run: pip3 install yamllint
|
||||||
|
|
||||||
- name: Lint code.
|
- name: Lint code.
|
||||||
run: |
|
run: |
|
||||||
yamllint .
|
yamllint .
|
||||||
ansible-lint
|
|
||||||
|
|
||||||
molecule:
|
molecule:
|
||||||
name: Molecule
|
name: Molecule
|
||||||
|
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
'on':
|
'on':
|
||||||
release:
|
push:
|
||||||
types:
|
tags:
|
||||||
- published
|
- '*'
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -35,8 +35,4 @@ jobs:
|
||||||
run: pip3 install ansible-base
|
run: pip3 install ansible-base
|
||||||
|
|
||||||
- name: Trigger a new import on Galaxy.
|
- name: Trigger a new import on Galaxy.
|
||||||
run: >-
|
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
|
||||||
ansible-galaxy role import
|
|
||||||
--api-key ${{ secrets.GALAXY_API_KEY }}
|
|
||||||
$(echo $GITHUB_REPOSITORY | cut -d/ -f1)
|
|
||||||
$(echo $GITHUB_REPOSITORY | cut -d/ -f2)
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
*.retry
|
*.retry
|
||||||
*/__pycache__
|
*/__pycache__
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.cache
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,5 @@ platforms:
|
||||||
pre_build_image: true
|
pre_build_image: true
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
log: true
|
|
||||||
playbooks:
|
playbooks:
|
||||||
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
|
converge: ${MOLECULE_PLAYBOOK:-converge.yml}
|
||||||
|
|
Loading…
Reference in a new issue