Skip to content

Create main.yml #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Create main.yml #17

merged 1 commit into from
Apr 22, 2025

Conversation

aminespinoza10
Copy link
Collaborator

This pull request introduces a new GitHub Actions workflow to automate the deployment of infrastructure using Terraform. The workflow is triggered on pushes to the main branch and includes steps for initializing, validating, planning, and applying Terraform configurations.

New GitHub Actions workflow for infrastructure deployment:

  • .github/workflows/main.yml: Added a workflow named "Deploy infrastructure" that runs on pushes to the main branch. It includes a terraform job that uses environment variables from GitHub secrets, checks out the repository, sets up Terraform, and executes the following steps:
    • Initializes Terraform with backend configuration.
    • Validates the Terraform configuration.
    • Generates a Terraform execution plan.
    • Applies the Terraform plan.

Closes: #16

@aminespinoza10 aminespinoza10 requested a review from gndx April 22, 2025 14:42
@aminespinoza10 aminespinoza10 self-assigned this Apr 22, 2025
Copy link
Member

@gndx gndx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aminespinoza10 aminespinoza10 merged commit 9bce26b into main Apr 22, 2025
1 check passed
@aminespinoza10 aminespinoza10 deleted the amines/16 branch April 22, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crear CI/CD para Terraform
2 participants