bitovi / bitovi/github-actions-deploy-stackstorm

PR review flow integration: Terraform plan + Ansible dry-run

Ouverte
#27 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature
Langage dominant
Shell
Étoiles
9
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

This is a good time and repository to show the PR flow with BitOps.
https://github.com/bitovi/bitops/issues/325

When using this GH Action, on every PR the terraform should run plan, and ansible should run dry-run,
show the result as a GH Status check.
Once the PR is approved and merged, - run the actual terraform apply.

Bonus points if we could post the `tf plan` diff back to the PR as a comment.

See https://github.com/marketplace/actions/terraform-pr-commenter#screenshots as an example:
![](https://github.com/robburger/terraform-pr-commenter/blob/master/images/plan-output.png?raw=true)

StackStorm is a complex beast and allowing users to run the proper PR review flow instead of "I'm feeling lucky" `apply` would prevent users from shooting themselves in the foot and encourage best practices.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencer par le point d’entrée GitHub Action du dépôt et suivre comment les exécutions de déploiement Terraform et Ansible sont invoquées. Définir le flux de PR autour de Terraform plan, Ansible dry-run, des GitHub status checks et de apply après le merge ; le commentaire de diff Terraform optionnel relève d’un périmètre supplémentaire. C’est terminé lorsque le workflow distingue en toute sécurité les exécutions de revue des exécutions de déploiement après le merge.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
ansible, aws, github-actions, shell, terraform
Domaine
ci-cd, cloud, devops, infrastructure
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.