From 12c83ba3c811c8c2adc5d42d97654ea9c8ed27bf Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 22 Apr 2022 18:12:16 +0200
Subject: [PATCH] Add drupal-deploy-ng task template

---
 lakedrops-execute.yml |  3 +++
 test-and-deploy.yml   | 22 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/lakedrops-execute.yml b/lakedrops-execute.yml
index f6c655e..986999e 100644
--- a/lakedrops-execute.yml
+++ b/lakedrops-execute.yml
@@ -42,5 +42,8 @@ Build Theme:
 Deploy:
   extends: '.deployartefact'
 
+DeployNG:
+  extends: '.deployartefact-ng'
+
 Reset Locales:
   extends: '.resetlocales'
diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index f76c407..96a609b 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -349,6 +349,7 @@ Debug:
   cache: {}
   rules:
     - if: '$DISABLE_DEPLOYMENT != "1"'
+    - if: '$DISABLE_DEPLOYMENT_REMOTE != "1"'
   dependencies:
     - 'Build Theme'
 
@@ -366,6 +367,27 @@ Debug:
   cache: {}
   rules:
     - if: '$DISABLE_DEPLOYMENT != "1"'
+    - if: '$DISABLE_DEPLOYMENT_REMOTE != "1"'
+  dependencies:
+    - 'Build Prod Site'
+    - 'Build Theme'
+
+.deployartefact-ng:
+  stage: deploy
+  tags:
+    - ansiblelocal
+  image: registry.lakedrops.com/ansible-inventories/localhost:latest
+  variables:
+    GIT_STRATEGY: none
+  environment:
+    name: ${ENVIRONMENT_NAME}
+    url: ${ENVIRONMENT_URL}
+  script:
+    - ascr drupal-deploy-ng ${CI_PROJECT_ID} ${CI_PROJECT_PATH_SLUG} ${CI_COMMIT_BRANCH} --extra-vars="DRUPAL_ARTEFACT_SRC=${PWD}" --extra-vars="SKIP_CONFIG_IMPORT=${SKIPCONFIGIMPORT}" ${CAE}
+  cache: {}
+  rules:
+    - if: '$DISABLE_DEPLOYMENT != "1"'
+    - if: '$DISABLE_DEPLOYMENT_REMOTE != "0"'
   dependencies:
     - 'Build Prod Site'
     - 'Build Theme'
-- 
GitLab