Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Overview of the Issue
I have set multiple projects, with custom workflows in my repo, but in the UI it shows up as default workspace and project name the same for all
Reproduction Steps
atlantis repo-level config:
version: 3
projects:
- name: dev
workflow: dev
dir: .
autoplan:
when_modified: ["*.tf", "env-vars/dev.tfvars"]
- name: qa
workflow: qa
dir: .
autoplan:
when_modified: ["*.tf", "env-vars/qa.tfvars"]
- name: prod
workflow: prod
dir: .
autoplan:
when_modified: ["*.tf", "env-vars/prod.tfvars"]
workflows:
dev:
plan:
steps:
- init:
extra_args: ["-backend-config=backend-configs/dev.hcl", "-reconfigure", "-upgrade"]
- plan:
extra_args: ["-var-file=env-vars/dev.tfvars"]
apply:
steps:
- run: |
if [ "$BASE_BRANCH_NAME" = "dev" ]; then
echo "we are on dev branch, thus proceeding with the apply!"
terraform${ATLANTIS_TERRAFORM_VERSION} apply "$PLANFILE"
else
echo "we are not on dev branch, thus canceling the apply"
fi
qa:
plan:
steps:
- init:
extra_args: ["-backend-config=backend-configs/qa.hcl", "-reconfigure", "-upgrade"]
- plan:
extra_args: ["-var-file=env-vars/qa.tfvars"]
apply:
steps:
- run: |
if [ "$BASE_BRANCH_NAME" = "qa" ]; then
echo "we are on qa branch, thus proceeding with the apply!"
terraform${ATLANTIS_TERRAFORM_VERSION} apply "$PLANFILE"
else
echo "we are not on qa branch, thus canceling the apply"
fi
prod:
plan:
steps:
- init:
extra_args: ["-backend-config=backend-configs/prod.hcl", "-reconfigure", "-upgrade"]
- plan:
extra_args: ["-var-file=env-vars/prod.tfvars"]
apply:
steps:
- run: |
if [ "$BASE_BRANCH_NAME" = "prod" ]; then
echo "we are on prod branch, thus proceeding with the apply!"
terraform${ATLANTIS_TERRAFORM_VERSION} apply "$PLANFILE"
else
echo "we are not on prod branch, thus canceling the apply"
fi
Community Note
Overview of the Issue
I have set multiple projects, with custom workflows in my repo, but in the UI it shows up as default workspace and project name the same for all
Reproduction Steps
atlantis repo-level config:
Environment details