From a9b4c0f5d04e807b8fce67622e2eb0d28e1addbb Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Mon, 16 Oct 2023 17:01:15 +0200 Subject: [PATCH] chore: create keys as a post-rollout task --- .lagoon.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.lagoon.yml b/.lagoon.yml index 3167013c3..0c35aea46 100644 --- a/.lagoon.yml +++ b/.lagoon.yml @@ -20,6 +20,12 @@ tasks: name: import translations from the ui command: drush scr scripts/translations-import.php service: cli + - run: + name: Create Keys for Simple OAuth if necessary + command: | + if [[ ! -f /app/keys/private.key || ! -f /app/keys/public.key ]]; then + drush simple-oauth:generate-keys /app/keys + fi environments: prod: routes: