Skip to content

Commit

Permalink
Parallelize github actions (#17)
Browse files Browse the repository at this point in the history
* Attempting to parallelize actions

* Update badge
  • Loading branch information
Naman1997 authored Aug 15, 2023
1 parent b1b3c62 commit bc46478
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/packer.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/ansible.yml → .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ansible
name: Validatate configs
on:
push:
branches: [ main ]
Expand All @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
build:
ansible:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,3 +21,17 @@ jobs:
# Check syntax for all ansible playbooks
- name: Validate all playbooks
run: ansible-playbook playbook.yml --syntax-check
packer:
runs-on: ubuntu-latest
name: packer
steps:
- name: Checkout Repository
uses: actions/checkout@v2

# validate templates
- name: Validate Template
uses: hashicorp/packer-github-actions@master
with:
command: validate
arguments: -syntax-only
target: archlinux.pkr.hcl
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# arch-cloud-image

[![Ansible](https://github.com/Naman1997/arch-cloud-image/actions/workflows/ansible.yml/badge.svg)](https://github.com/Naman1997/arch-cloud-image/actions/workflows/ansible.yml)
[![Packer](https://github.com/Naman1997/arch-cloud-image/actions/workflows/packer.yml/badge.svg)](https://github.com/Naman1997/arch-cloud-image/actions/workflows/packer.yml)
[![Validatate configs](https://github.com/Naman1997/arch-cloud-image/actions/workflows/validate.yml/badge.svg)](https://github.com/Naman1997/arch-cloud-image/actions/workflows/validate.yml)
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naman1997/arch-cloud-image/blob/main/LICENSE)

## Objective of this repo
Expand Down

0 comments on commit bc46478

Please sign in to comment.