Skip to content

How do I prevent gruntwork pipelines from running in specific folders or modules? #675

Answered by ellisonc
ellisonc asked this question in How do I
Discussion options

You must be logged in to vote

If you're using the default setup you should have a script located at _ci/scripts/deploy-infra.sh It's responsible for detecting changes and deciding which deployer commands to run. You should be able to add a new condition to the route function to skip specific modules. By default this feature is used to exclude the ecs-deploy-runner from updating itself as shown below:

function route {
  local -r updated_folder="$1"

  # Add to this condition if you have other modules you do not want to manage with ECS deploy runner.
  if [[ "$updated_folder" == "." ]]; then
    echo "WARNING: A configuration in the repository root has changed. Because this could potentially impact many configurations, …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ellisonc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment