Replies: 2 comments 1 reply
-
|
Hi @crileroro, Thanks for reaching out! We have some content scheduled over the next few weeks to further elaborate on CI/CD. However, I will discuss your use-case with the team and get back to you with an example GitHub Actions in a little bit! |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
If it were me, I would be using the pipeline steps:
And each would do Have you tried that? Would be interested to hear what other solutions people have. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all, thanks for this great tool. I've been trying it out and like all functionalities!
Secondly, I would like to know some best practices to deploy from test -> production using terramate in a CICD pipeline (Github Actions).
Roughly, my monorepo is as follows (very standard):
I have 2 accounts: test and production. Let's assume that in the stacks network I have an import function that imports the creation of the
main.tffile from the helpernetwork.tm.hcl. If I change something in that helper file and doterramate generate, it will modify the content of the main.tf in bothtestandprodenvironments. If I want to apply these changes, I doterramate run --changed -- terraform apply -input=false -auto-approve. I can use in the stacks thebefore/afterfunctionality so thatprodis run just aftertest. Here is my situation: I would like to runtest, check that my change is good in that environment, and just after that run the change inprod.I am not using terraform modules so I can't make use of
globalsto update firsttestand laterprodin a different PR. Do you have any best practice/advice on how I can achieve my goal using Terramate in CICD pipelines?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions