-
Notifications
You must be signed in to change notification settings - Fork 561
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
introduce stage dimension to spec variables #1795
Comments
@motatoes I am working on this issue. could you elaborate me how currently it is working? I mean could you provide me example for which it works perfectly when there is no staging in yml. It will help me to work better on this issue. |
Hi @octocamocoder47 so for example if we had a workflow like this:
It would fail saying that there are duplicate AWS_ACCESS_KEY_ID variable defined. What we want is that in this case is that it should not fail with this error and instead it should check them correctly. We need to also ensure that "state" is exposed only during the terraform init phase and the "commands" is only exposed during the "terraform plan" or "terraform apply" phase. The "run" stage should be exposed for any custom commands |
…le stages solves issue: diggerhq#1795
I just noticed this part of the code:
digger/backend/services/spec.go
Line 104 in 55068d3
and it seems that we combine all of state, commands and run variables into a single list and then send them to a cli. Furthermore we are checking for duplicates accross all of the variables which is incorrect. For context digger.yml has variables defined like this:
What we are doing in that code block is combining all three types into one list and checking for duplicates which is incorrect. What we are also doing on the cli is we are exposing each variable in all three stages. What we should do instead:
In the future we might have a key called "all" for variables that are exposed to all stages
The text was updated successfully, but these errors were encountered: