You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naming a workflow default in server side configuration does not change the default for all repos running on Atlantis.
Detail:
At my organization we attempted to change the default workflow for all repositories by using server side configuration. We named the work flow default as specified in the documentation. However, we know this flow is not being executed due to our prod condition not executing.
Atlantis version: v0.10.1
Here is our server side configuration:
repos:
# All Repos
- id: /.*/
apply_requirements: [approved]
allow_custom_workflows: true
allowed_overrides: [workflow]
workflows:
default:
plan:
steps:
- init
- plan
apply:
steps:
- run: if [ "$WORKSPACE" == "prod" ] ; then echo "Atlantis is not used to apply to prod. Merge code first and use the CI/CD pipelines!" ; exit 1; fi
- apply
Renaming the workflow from default, and setting the workflow under repos does fix the issue.
repos:
# All Repos
- id: /.*/
apply_requirements: [approved]
allow_custom_workflows: true
workflow: thecustomwf
allowed_overrides: [workflow]
workflows:
thecustomwf:
plan:
steps:
- init
- plan
apply:
steps:
- run: if [ "$WORKSPACE" == "prod" ] ; then echo "Atlantis is not used to apply to prod. Merge code first and use the CI/CD pipelines!" ; exit 1; fi
- apply
We did leave allow workflow override on, because we needed to allow our hundreds of projects time to migrate. I'm wondering if allowing the override is causing Atlantis to use the repos default workflow over the servers.
The text was updated successfully, but these errors were encountered:
Brief overview:
Naming a workflow
default
in server side configuration does not change the default for all repos running on Atlantis.Detail:
At my organization we attempted to change the default workflow for all repositories by using server side configuration. We named the work flow
default
as specified in the documentation. However, we know this flow is not being executed due to our prod condition not executing.Atlantis version: v0.10.1
Here is our server side configuration:
Renaming the workflow from default, and setting the workflow under repos does fix the issue.
We did leave allow workflow override on, because we needed to allow our hundreds of projects time to migrate. I'm wondering if allowing the override is causing Atlantis to use the repos default workflow over the servers.
The text was updated successfully, but these errors were encountered: