From 08e81c5e1676d3acb937d0da0efb2e317d9a7d34 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Oct 2023 22:51:30 +0200 Subject: [PATCH] feat(run): include any local tasks --- templates/astro/run.twig | 3 +++ templates/drupal/run.twig | 3 +++ templates/fractal/run.twig | 3 +++ templates/terraform/run.twig | 3 +++ 4 files changed, 12 insertions(+) diff --git a/templates/astro/run.twig b/templates/astro/run.twig index e21cefd..ab435a1 100755 --- a/templates/astro/run.twig +++ b/templates/astro/run.twig @@ -8,6 +8,9 @@ set -eu PATH="$PATH:./node_modules/.bin" +# Include any local tasks. +source run.local || true + {% if not isFlake %} # If we're running in CI we need to disable TTY allocation for docker compose # commands that enable it by default, such as exec and run. diff --git a/templates/drupal/run.twig b/templates/drupal/run.twig index e3251d5..c5c410f 100755 --- a/templates/drupal/run.twig +++ b/templates/drupal/run.twig @@ -4,6 +4,9 @@ set -eu +# Include any local tasks. +source run.local || true + # Run automated tests as part of the Continuous Integration (CI) pipeline. function ci:test { lint:dockerfile diff --git a/templates/fractal/run.twig b/templates/fractal/run.twig index 82f786d..7a4e692 100755 --- a/templates/fractal/run.twig +++ b/templates/fractal/run.twig @@ -9,6 +9,9 @@ set -eu PATH="$PATH:./node_modules/.bin" +# Include any local tasks. +source run.local || true + {% if isDocker %} # If we're running in CI we need to disable TTY allocation for docker compose # commands that enable it by default, such as exec and run. diff --git a/templates/terraform/run.twig b/templates/terraform/run.twig index 64f6de5..fbc5d0b 100755 --- a/templates/terraform/run.twig +++ b/templates/terraform/run.twig @@ -4,6 +4,9 @@ set -eu +# Include any local tasks. +source run.local || true + # Disable Git hooks. function git-hooks:off { git config --unset core.hooksPath