File tree Expand file tree Collapse file tree 7 files changed +54
-5
lines changed Expand file tree Collapse file tree 7 files changed +54
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: AWS
2
2
3
3
on :
4
4
workflow_call :
5
+ inputs :
6
+ enterprise :
7
+ description : Enterprise build
8
+ type : boolean
9
+ default : false
10
+ required : false
5
11
6
12
env :
7
13
AWS_BUCKET_NAME : ${{ secrets.AWS_BUCKET_NAME }}
30
36
.github/build/sum_sha256.sh
31
37
applicationVersion=$(jq -r '.version' package.json)
32
38
33
- aws s3 cp release/ s3://${AWS_BUCKET_NAME}/private/vscode/${applicationVersion} --recursive
39
+ if [ "${{ inputs.enterprise }}" = "true" ]; then
40
+ uploadPath="s3://${AWS_BUCKET_NAME}/private/vscode-enterprise/${applicationVersion}"
41
+ else
42
+ uploadPath="s3://${AWS_BUCKET_NAME}/private/vscode/${applicationVersion}"
43
+ fi
44
+
45
+ aws s3 cp release/ $uploadPath --recursive
Original file line number Diff line number Diff line change 22
22
default : ' staging'
23
23
required : false
24
24
25
+ enterprise :
26
+ description : Enterprise build
27
+ type : boolean
28
+ default : false
29
+ required : false
30
+
25
31
# Called for Release workflows
26
32
workflow_call :
27
33
inputs :
35
41
type : string
36
42
default : ' all'
37
43
required : false
44
+ enterprise :
45
+ description : Enterprise build
46
+ type : boolean
47
+ default : false
48
+ required : false
38
49
39
50
jobs :
40
51
build-linux :
@@ -43,13 +54,15 @@ jobs:
43
54
secrets : inherit
44
55
with :
45
56
environment : ${{ inputs.environment }}
57
+ enterprise : ${{ inputs.enterprise }}
46
58
47
59
build-macos :
48
60
if : startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all')
49
61
uses : ./.github/workflows/pipeline-build-macos.yml
50
62
secrets : inherit
51
63
with :
52
64
environment : ${{ inputs.environment }}
65
+ enterprise : ${{ inputs.enterprise }}
53
66
target : ${{ inputs.target }}
54
67
55
68
build-windows :
58
71
secrets : inherit
59
72
with :
60
73
environment : ${{ inputs.environment }}
74
+ enterprise : ${{ inputs.enterprise }}
Original file line number Diff line number Diff line change 9
9
default : ' staging'
10
10
type : string
11
11
12
+ enterprise :
13
+ description : Enterprise build
14
+ type : boolean
15
+ default : false
16
+ required : false
17
+
12
18
jobs :
13
19
build :
14
20
name : Build linux
78
84
RI_CLOUD_IDP_CLIENT_ID : ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
79
85
RI_CLOUD_IDP_GOOGLE_ID : ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
80
86
RI_CLOUD_IDP_GH_ID : ${{ secrets.RI_CLOUD_IDP_GH_ID }}
87
+ RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG : ${{ inputs.enterprise == false }}
Original file line number Diff line number Diff line change 15
15
default : ' all'
16
16
type : string
17
17
18
+ enterprise :
19
+ description : Enterprise build
20
+ type : boolean
21
+ default : false
22
+ required : false
23
+
18
24
jobs :
19
25
build :
20
26
name : Build macos
95
101
RI_CLOUD_IDP_CLIENT_ID : ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
96
102
RI_CLOUD_IDP_GOOGLE_ID : ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
97
103
RI_CLOUD_IDP_GH_ID : ${{ secrets.RI_CLOUD_IDP_GH_ID }}
104
+ RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG : ${{ inputs.enterprise == false }}
Original file line number Diff line number Diff line change 9
9
default : ' staging'
10
10
type : string
11
11
12
+ enterprise :
13
+ description : Enterprise build
14
+ type : boolean
15
+ default : false
16
+ required : false
17
+
12
18
jobs :
13
19
build :
14
20
name : Build windows
66
72
RI_CLOUD_IDP_CLIENT_ID : ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
67
73
RI_CLOUD_IDP_GOOGLE_ID : ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
68
74
RI_CLOUD_IDP_GH_ID : ${{ secrets.RI_CLOUD_IDP_GH_ID }}
75
+ RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG : ${{ inputs.enterprise == false }}
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- ' latest'
7
+ - ' latest-enterprise'
7
8
8
9
jobs :
9
10
tests-prod :
22
23
with :
23
24
environment : ' production'
24
25
target : ' all'
26
+ enterprise : ${{ github.ref_name == 'latest-enterprise' }}
25
27
26
28
e2e-linux-tests :
27
29
name : E2E Docker tests
34
36
uses : ./.github/workflows/aws.yml
35
37
needs : builds-prod
36
38
secrets : inherit
39
+ with :
40
+ enterprise : ${{ github.ref_name == 'latest-enterprise' }}
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- ' release/**'
7
+ - ' release-enterprise/**'
7
8
8
9
jobs :
9
10
tests :
22
23
with :
23
24
environment : ' staging'
24
25
target : ' all'
26
+ enterprise : ${{ startsWith(github.ref_name, 'release-enterprise/') }}
25
27
26
28
e2e-linux-tests :
27
29
needs : builds
28
30
uses : ./.github/workflows/tests-e2e-linux.yml
29
31
secrets : inherit
30
-
31
-
32
-
33
-
You can’t perform that action at this time.
0 commit comments