diff --git a/Makefile b/Makefile index 46bea97..f131cf6 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,13 @@ move_to_platform_dir: mkdir pkg mv ${PLATFORM_DIR} pkg/ -sync: remove_json move_ee_to_secret_dir md5 s3_sync +sync: remove_json move_to_secret_dir md5 s3_sync remove_json: find pkg/ -name '*.json' -delete -move_ee_to_secret_dir: - if support/is_gitlab_ee.sh ; then \ +move_to_secret_dir: + if support/is_gitlab_ee.sh || support/is_gitlab_com.sh ; then \ mv pkg ${SECRET_DIR} \ && mkdir pkg \ && mv ${SECRET_DIR} pkg/ \ diff --git a/support/is_gitlab_com.sh b/support/is_gitlab_com.sh new file mode 100644 index 0000000..635b2a7 --- /dev/null +++ b/support/is_gitlab_com.sh @@ -0,0 +1,2 @@ +#!/bin/bash +[[ -n $cloud ]] || grep -q '^source.*"git@dev.gitlab.org:gitlab/gitlab-cloud.git"' config/software/gitlab-rails.rb -- libgit2 0.21.2