From e6105d0265942d784e368e53b6f3bfc98a9ac774 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Fri, 22 Nov 2024 17:17:56 +0200 Subject: [PATCH] Exclude templates from triggering new hub deploys --- .github/workflows/deploy-hubs.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-hubs.yaml b/.github/workflows/deploy-hubs.yaml index 96c690949..2eb5f0969 100644 --- a/.github/workflows/deploy-hubs.yaml +++ b/.github/workflows/deploy-hubs.yaml @@ -20,13 +20,16 @@ on: - "!deployer/commands/generate/dedicated_cluster/**" - "!deployer/commands/generate/hub_asset/**" - "!deployer/commands/generate/resource_allocation/**" - - "!config/clusters/templates/**" - requirements.txt - .github/actions/setup-deploy/** - helm-charts/** - config/clusters/** # Exclude the template configuration files - - "!config/clusters/templates" + - "!config/clusters/templates/**" + - "!terraform/aws/projects/template.tfvars" + - "!terraform/gcp/projects/cluster.tfvars.template" + - "!eksctl/template.jsonnet" + pull_request: branches: - main @@ -44,7 +47,10 @@ on: - helm-charts/** - config/clusters/** # Exclude the template configuration files - - "!config/clusters/templates" + - "!config/clusters/templates/**" + - "!terraform/aws/projects/template.tfvars" + - "!terraform/gcp/projects/cluster.tfvars.template" + - "!eksctl/template.jsonnet" # Queue triggered executions of this workflow stemming from pushes to avoid # deployment conflicts.