-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Repo checkout root dir variable in custom flows #806
Comments
Hi Cristian, Otherwise, you can rely on the directory structure you've figured out. I can't see that changing in the future. |
|
|
@lkysow I needed something similar. If I am understanding your last comment correctly are you suggesting something like https://play.golang.org/p/hWTfXa8JIjt where we just remove |
Hi @awiddersheim the directory structure hasn't changed so that should work. |
Is there a reason why the REPO_REL_DIR isn't exposed in the environment? It would be rather useful, rather than having to try to reconstruct it from the DIR. |
Hi guys, sorry if this ha been answered but I could not find any info regarding this. I'm playing with custom flows and I wanted to see if I can run some checks after the plan is generated. Specifically I'm trying to run
terraform-compliance
. That tool requires a plan and also a folder/repo with the features specs to check. That folder in my case is in the repo's root. Now, I can see I havePLANFILE
with the location of the plan file andDIR
for the current folder (where the plan is executed) but I have no way to find out the root folder where the repo is checked out.I think is composed like this:
/home/atlantis/.atlantis/repos/${BASE_REPO_OWNER}/${BASE_REPO_NAME}/${PULL_NUM}/${WORKSPACE}/
but I'm not sure I can rely on that.Thanks
The text was updated successfully, but these errors were encountered: