File tree Expand file tree Collapse file tree 3 files changed +9
-38
lines changed Expand file tree Collapse file tree 3 files changed +9
-38
lines changed Original file line number Diff line number Diff line change 9
9
module Build
10
10
class Info
11
11
class << self
12
- def gcp_release_bucket
13
- # All tagged builds are pushed to the release bucket
14
- # whereas regular branch builds use a separate one
15
- gcp_pkgs_release_bucket = Gitlab ::Util . get_env ( 'GITLAB_COM_PKGS_RELEASE_BUCKET' ) || 'gitlab-com-pkgs-release'
16
- gcp_pkgs_builds_bucket = Gitlab ::Util . get_env ( 'GITLAB_COM_PKGS_BUILDS_BUCKET' ) || 'gitlab-com-pkgs-builds'
17
- Check . on_tag? ? gcp_pkgs_release_bucket : gcp_pkgs_builds_bucket
18
- end
19
-
20
- def gcp_release_bucket_sa_file
21
- Gitlab ::Util . get_env ( 'GITLAB_COM_PKGS_SA_FILE' )
22
- end
23
-
24
12
def log_level
25
13
if Gitlab ::Util . get_env ( 'BUILD_LOG_LEVEL' ) && !Gitlab ::Util . get_env ( 'BUILD_LOG_LEVEL' ) . empty?
26
14
Gitlab ::Util . get_env ( 'BUILD_LOG_LEVEL' )
Original file line number Diff line number Diff line change 1
1
require 'google/cloud/storage'
2
- require_relative './build/info.rb'
2
+
3
+ require_relative 'build/check'
4
+ require_relative 'util'
3
5
4
6
class GCloudHelper
5
7
class << self
@@ -30,11 +32,15 @@ def upload_packages_and_print_urls(dir)
30
32
private
31
33
32
34
def sa_file
33
- Build :: Info . gcp_release_bucket_sa_file
35
+ Gitlab :: Util . get_env ( 'GITLAB_COM_PKGS_SA_FILE' )
34
36
end
35
37
36
38
def pkgs_bucket
37
- Build ::Info . gcp_release_bucket
39
+ # All tagged builds are pushed to the release bucket
40
+ # whereas regular branch builds use a separate one
41
+ gcp_pkgs_release_bucket = Gitlab ::Util . get_env ( 'GITLAB_COM_PKGS_RELEASE_BUCKET' ) || 'gitlab-com-pkgs-release'
42
+ gcp_pkgs_builds_bucket = Gitlab ::Util . get_env ( 'GITLAB_COM_PKGS_BUILDS_BUCKET' ) || 'gitlab-com-pkgs-builds'
43
+ Build ::Check . on_tag? ? gcp_pkgs_release_bucket : gcp_pkgs_builds_bucket
38
44
end
39
45
end
40
46
end
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments