Skip to content

Commit

Permalink
Add GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 1, 2020
1 parent 2b83a76 commit 50fbacd
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
#
exclude_paths:
- ./meta/exception.yml
- ./meta/preferences.yml
115 changes: 115 additions & 0 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
---
#
# Ansible managed
#

name: Ansible Molecule

on:
push:
tags_ignore:
- '*'

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: molecule
uses: robertdebock/[email protected]
with:
image: ${{ matrix.image }}
entrypoint: /usr/local/bin/molecule
args: lint
test:
needs:
- lint
runs-on: ubuntu-latest
strategy:
matrix:
image:
- archlinux
- debian
- centos
- fedora
- opensuse
- ubuntu
tag:
- 1
- 7
- edge
- latest
- rawhide
- unstable
exclude:
- image: alpine
tag: 1
- image: alpine
tag: 7
- image: alpine
tag: rawhide
- image: alpine
tag: unstable
- image: amazonlinux
tag: 7
- image: amazonlinux
tag: edge
- image: amazonlinux
tag: rawhide
- image: amazonlinux
tag: unstable
- image: debian
tag: 1
- image: debian
tag: 7
- image: debian
tag: edge
- image: debian
tag: rawhide
- image: centos
tag: 1
- image: centos
tag: edge
- image: centos
tag: rawhide
- image: centos
tag: unstable
- image: fedora
tag: 1
- image: fedora
tag: 7
- image: fedora
tag: edge
- image: fedora
tag: unstable
- image: opensuse
tag: 1
- image: opensuse
tag: 7
- image: opensuse
tag: edge
- image: opensuse
tag: rawhide
- image: opensuse
tag: unstable
- image: ubuntu
tag: 1
- image: ubuntu
tag: 7
- image: ubuntu
tag: edge
- image: ubuntu
tag: rawhide
- image: ubuntu
tag: unstable
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: "${{ github.repository }}"
- name: molecule
uses: robertdebock/[email protected]
with:
image: ${{ matrix.image }}
options: "--parallel all"
20 changes: 20 additions & 0 deletions .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
#
# Ansible managed
#

name: Release to Ansible Galaxy

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: galaxy
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2019 Robert de Bock ([email protected])
Copyright 2020 Robert de Bock ([email protected])

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ httpd
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
<a href="https://travis-ci.org/robertdebock/ansible-role-httpd"> <img src="https://travis-ci.org/robertdebock/ansible-role-httpd.svg?branch=master" alt="Build status"/></a> <img src="https://img.shields.io/ansible/role/d/21855"/> <img src="https://img.shields.io/ansible/quality/21855"/>

<a href="https://github.com/robertdebock/ansible-role-httpd/actions"><img src="https://github.com/robertdebock/ansible-role-httpd/workflows/GitHub%20Action/badge.svg"/></a>

Install and configure httpd on your system.

Example Playbook
Expand Down
2 changes: 2 additions & 0 deletions meta/preferences.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
tox_parallel: yes

0 comments on commit 50fbacd

Please sign in to comment.