Unify CI config into 1 file
This commit is contained in:
parent
624d1b5425
commit
4d75130afd
3 changed files with 16 additions and 21 deletions
|
@ -1,9 +1,9 @@
|
|||
name: Ansible
|
||||
name: CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
ansible:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
@ -19,3 +19,16 @@ jobs:
|
|||
run: ./scripts/ansible/setup.sh
|
||||
- name: Run linters
|
||||
run: ./scripts/ansible/lint.sh
|
||||
|
||||
terraform:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install terraform
|
||||
uses: marocchino/setup-terraform@v1
|
||||
with:
|
||||
version: "0.12.20"
|
||||
- name: Initialize Terraform
|
||||
run: ./scripts/terraform/terraform.sh init -backend=false
|
||||
- name: Lint
|
||||
run: ./scripts/terraform/lint.sh
|
17
.github/workflows/terraform.yml
vendored
17
.github/workflows/terraform.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: Terraform
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install terraform
|
||||
uses: marocchino/setup-terraform@v1
|
||||
with:
|
||||
version: "0.12.20"
|
||||
- name: Initialize Terraform
|
||||
run: ./scripts/terraform/terraform.sh init -backend=false
|
||||
- name: Lint
|
||||
run: ./scripts/terraform/lint.sh
|
|
@ -1,7 +1,6 @@
|
|||
# Infrastructure
|
||||
|
||||
![Ansible Status](https://github.com/realorangeone/infrastructure/workflows/Ansible/badge.svg)
|
||||
![Terraform Status](https://github.com/realorangeone/infrastructure/workflows/Terraform/badge.svg)
|
||||
![CI Status](https://github.com/realorangeone/infrastructure/workflows/CI/badge.svg)
|
||||
|
||||
## Requirements
|
||||
|
||||
|
|
Loading…
Reference in a new issue