Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
parsaloi authored Jan 6, 2025
1 parent 5a36643 commit 24e8554
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Infrastructure

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
validate:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Check Requirements
run: ./scripts/utils/validators.sh terraform virsh
- name: Validate Terraform
run: ./scripts/terraform/validate.sh

plan:
needs: validate
runs-on: self-hosted
steps:
- name: Create Plan
run: ./scripts/terraform/plan.sh

deploy:
needs: plan
runs-on: self-hosted
steps:
- name: Apply Infrastructure
run: ./scripts/terraform/apply.sh

verify:
needs: deploy
runs-on: self-hosted
steps:
- name: Verify VM
run: ./scripts/vm/verify.sh

0 comments on commit 24e8554

Please sign in to comment.