From 02c8f5447241e0d797f9764a92c175f51c9ae5d2 Mon Sep 17 00:00:00 2001 From: Erick Hitter Date: Wed, 17 Apr 2019 20:43:28 -0700 Subject: [PATCH] Only init submodules where needed --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9852f01..04065c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,5 @@ image: docker:latest -variables: - GIT_SUBMODULE_STRATEGY: recursive - services: - docker:dind @@ -109,6 +106,8 @@ build-debian-jessie-build-dev: # Debian WP.org Plugin deploy builds build-debian-wp-org-deploy-build-master: stage: deploy + variables: + GIT_SUBMODULE_STRATEGY: recursive script: - docker build --pull -t "$CI_REGISTRY_IMAGE/debian:wp-org-deploy" ./debian/wp-org-deploy/context - docker push "$CI_REGISTRY_IMAGE/debian:wp-org-deploy" @@ -118,6 +117,8 @@ build-debian-wp-org-deploy-build-master: build-debian-wp-org-deploy-build-dev: stage: deploy + variables: + GIT_SUBMODULE_STRATEGY: recursive script: - docker build --pull -t "$CI_REGISTRY_IMAGE/debian:wp-org-deploy-dev" ./debian/wp-org-deploy/context - docker push "$CI_REGISTRY_IMAGE/debian:wp-org-deploy-dev" -- GitLab