Commit 74c63f2f02848c7c2d04f799ebe6065bb4778aa7

Authored by Jacob Vosmaer
1 parent 1b70a572

Store gitlab.com packages in a secret directory

Showing 2 changed files with 5 additions and 3 deletions   Show diff stats
@@ -27,13 +27,13 @@ move_to_platform_dir: @@ -27,13 +27,13 @@ move_to_platform_dir:
27 mkdir pkg 27 mkdir pkg
28 mv ${PLATFORM_DIR} pkg/ 28 mv ${PLATFORM_DIR} pkg/
29 29
30 -sync: remove_json move_ee_to_secret_dir md5 s3_sync 30 +sync: remove_json move_to_secret_dir md5 s3_sync
31 31
32 remove_json: 32 remove_json:
33 find pkg/ -name '*.json' -delete 33 find pkg/ -name '*.json' -delete
34 34
35 -move_ee_to_secret_dir:  
36 - if support/is_gitlab_ee.sh ; then \ 35 +move_to_secret_dir:
  36 + if support/is_gitlab_ee.sh || support/is_gitlab_com.sh ; then \
37 mv pkg ${SECRET_DIR} \ 37 mv pkg ${SECRET_DIR} \
38 && mkdir pkg \ 38 && mkdir pkg \
39 && mv ${SECRET_DIR} pkg/ \ 39 && mv ${SECRET_DIR} pkg/ \
support/is_gitlab_com.sh 0 → 100644
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +#!/bin/bash
  2 +[[ -n $cloud ]] || grep -q '^source.*"git@dev.gitlab.org:gitlab/gitlab-cloud.git"' config/software/gitlab-rails.rb