Skip to content

Commit ebf496b

Browse files
authored
RI-7012: add enterprise build workflows (#271)
* RI-7012: add enterprise build workflows * RI-7012: update enterprise build pipelines * RI-7012: refactor enterprise build pipelines * temp: rename prod folder * Revert "temp: rename prod folder" This reverts commit 98378eb.
1 parent fbbcd67 commit ebf496b

File tree

7 files changed

+54
-5
lines changed

7 files changed

+54
-5
lines changed

.github/workflows/aws.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: AWS
22

33
on:
44
workflow_call:
5+
inputs:
6+
enterprise:
7+
description: Enterprise build
8+
type: boolean
9+
default: false
10+
required: false
511

612
env:
713
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
@@ -30,4 +36,10 @@ jobs:
3036
.github/build/sum_sha256.sh
3137
applicationVersion=$(jq -r '.version' package.json)
3238
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

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ on:
2222
default: 'staging'
2323
required: false
2424

25+
enterprise:
26+
description: Enterprise build
27+
type: boolean
28+
default: false
29+
required: false
30+
2531
# Called for Release workflows
2632
workflow_call:
2733
inputs:
@@ -35,6 +41,11 @@ on:
3541
type: string
3642
default: 'all'
3743
required: false
44+
enterprise:
45+
description: Enterprise build
46+
type: boolean
47+
default: false
48+
required: false
3849

3950
jobs:
4051
build-linux:
@@ -43,13 +54,15 @@ jobs:
4354
secrets: inherit
4455
with:
4556
environment: ${{ inputs.environment }}
57+
enterprise: ${{ inputs.enterprise }}
4658

4759
build-macos:
4860
if: startsWith(inputs.target, 'macos') || endsWith(inputs.target, 'all')
4961
uses: ./.github/workflows/pipeline-build-macos.yml
5062
secrets: inherit
5163
with:
5264
environment: ${{ inputs.environment }}
65+
enterprise: ${{ inputs.enterprise }}
5366
target: ${{ inputs.target }}
5467

5568
build-windows:
@@ -58,3 +71,4 @@ jobs:
5871
secrets: inherit
5972
with:
6073
environment: ${{ inputs.environment }}
74+
enterprise: ${{ inputs.enterprise }}

.github/workflows/pipeline-build-linux.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
default: 'staging'
1010
type: string
1111

12+
enterprise:
13+
description: Enterprise build
14+
type: boolean
15+
default: false
16+
required: false
17+
1218
jobs:
1319
build:
1420
name: Build linux
@@ -78,3 +84,4 @@ jobs:
7884
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
7985
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
8086
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}
87+
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == false }}

.github/workflows/pipeline-build-macos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
default: 'all'
1616
type: string
1717

18+
enterprise:
19+
description: Enterprise build
20+
type: boolean
21+
default: false
22+
required: false
23+
1824
jobs:
1925
build:
2026
name: Build macos
@@ -95,3 +101,4 @@ jobs:
95101
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
96102
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
97103
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}
104+
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == false }}

.github/workflows/pipeline-build-windows.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
default: 'staging'
1010
type: string
1111

12+
enterprise:
13+
description: Enterprise build
14+
type: boolean
15+
default: false
16+
required: false
17+
1218
jobs:
1319
build:
1420
name: Build windows
@@ -66,3 +72,4 @@ jobs:
6672
RI_CLOUD_IDP_CLIENT_ID: ${{ secrets.RI_CLOUD_IDP_CLIENT_ID }}
6773
RI_CLOUD_IDP_GOOGLE_ID: ${{ secrets.RI_CLOUD_IDP_GOOGLE_ID }}
6874
RI_CLOUD_IDP_GH_ID: ${{ secrets.RI_CLOUD_IDP_GH_ID }}
75+
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == false }}

.github/workflows/release-prod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- 'latest'
7+
- 'latest-enterprise'
78

89
jobs:
910
tests-prod:
@@ -22,6 +23,7 @@ jobs:
2223
with:
2324
environment: 'production'
2425
target: 'all'
26+
enterprise: ${{ github.ref_name == 'latest-enterprise' }}
2527

2628
e2e-linux-tests:
2729
name: E2E Docker tests
@@ -34,3 +36,5 @@ jobs:
3436
uses: ./.github/workflows/aws.yml
3537
needs: builds-prod
3638
secrets: inherit
39+
with:
40+
enterprise: ${{ github.ref_name == 'latest-enterprise' }}

.github/workflows/release-stage.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- 'release/**'
7+
- 'release-enterprise/**'
78

89
jobs:
910
tests:
@@ -22,12 +23,9 @@ jobs:
2223
with:
2324
environment: 'staging'
2425
target: 'all'
26+
enterprise: ${{ startsWith(github.ref_name, 'release-enterprise/') }}
2527

2628
e2e-linux-tests:
2729
needs: builds
2830
uses: ./.github/workflows/tests-e2e-linux.yml
2931
secrets: inherit
30-
31-
32-
33-

0 commit comments

Comments
 (0)