Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
description: Enable SSH Debug
type: boolean

enterprise:
description: Enterprise build
type: boolean

jobs:
build-linux:
if: contains(inputs.target, 'linux') || inputs.target == 'all'
Expand All @@ -27,6 +31,7 @@ jobs:
environment: ${{ inputs.environment }}
target: ${{ inputs.target }}
debug: ${{ inputs.debug }}
enterprise: ${{ inputs.enterprise }}

build-macos:
if: contains(inputs.target, 'macos') || inputs.target == 'all'
Expand All @@ -36,6 +41,7 @@ jobs:
environment: ${{ inputs.environment }}
target: ${{ inputs.target }}
debug: ${{ inputs.debug }}
enterprise: ${{ inputs.enterprise }}

build-windows:
if: contains(inputs.target, 'windows') || inputs.target == 'all'
Expand All @@ -44,6 +50,7 @@ jobs:
with:
environment: ${{ inputs.environment }}
debug: ${{ inputs.debug }}
enterprise: ${{ inputs.enterprise }}

build-docker:
if: contains(inputs.target, 'docker') || inputs.target == 'all'
Expand All @@ -52,3 +59,4 @@ jobs:
with:
environment: ${{ inputs.environment }}
debug: ${{ inputs.debug }}
enterprise: ${{ inputs.enterprise }}
104 changes: 104 additions & 0 deletions .github/workflows/manual-build-enterprise.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: 🚀 Manual build - Enterprise

on:
# Manual trigger build
# No multi-select
# https://github.com/actions/runner/issues/2076
workflow_dispatch:
inputs:
build_docker:
description: Build Docker
type: boolean
required: false

build_windows_x64:
description: Build Windows x64
type: boolean
required: false

build_macos_x64:
description: Build macOS x64
type: boolean
required: false

build_macos_arm64:
description: Build macOS arm64
type: boolean
required: false

build_linux_appimage_x64:
description: Build Linux AppImage x64
type: boolean
required: false

build_linux_deb_x64:
description: Build Linux deb x64
type: boolean
required: false

environment:
description: Environment to run build
type: environment
default: 'development'
required: false

debug:
description: Enable SSH Debug
type: boolean

# Cancel a previous same workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
get-selected:
runs-on: ubuntu-latest
outputs: # Set this to consume the output on other job
selected: ${{ steps.get-selected.outputs.selected}}
steps:
- uses: actions/checkout@v4

- id: get-selected
uses: joao-zanutto/get-selected@v1.1.1
with:
format: 'list'

- name: echo selected targets
run: echo ${{ steps.get-selected.outputs.selected }}

manual-build:
needs: get-selected
uses: ./.github/workflows/build.yml
secrets: inherit
with:
target: ${{ needs.get-selected.outputs.selected }}
debug: ${{ inputs.debug }}
environment: ${{ inputs.environment }}
enterprise: true

aws-upload:
uses: ./.github/workflows/aws-upload-dev.yml
secrets: inherit
needs: [manual-build]
if: always()

clean:
uses: ./.github/workflows/clean-deployments.yml
# secrets: inherit
needs: [aws-upload]
if: always()

# Remove artifacts from github actions
remove-artifacts:
name: Remove artifacts
needs: [aws-upload]
if: always()
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Remove all artifacts
uses: ./.github/actions/remove-artifacts


1 change: 1 addition & 0 deletions .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
target: ${{ needs.get-selected.outputs.selected }}
debug: ${{ inputs.debug }}
environment: ${{ inputs.environment }}
enterprise: false

aws-upload:
uses: ./.github/workflows/aws-upload-dev.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pipeline-build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
default: false
type: boolean

enterprise:
description: Enterprise build
type: boolean

jobs:
build:
name: Build docker
Expand Down Expand Up @@ -130,5 +134,6 @@ jobs:
RI_SERVER_TLS_KEY: ${{ secrets.RI_SERVER_TLS_KEY }}
RI_FEATURES_CONFIG_URL: ${{ secrets.RI_FEATURES_CONFIG_URL }}
RI_UPGRADES_LINK: ${{ secrets.RI_UPGRADES_LINK }}
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == 'false' }}


5 changes: 5 additions & 0 deletions .github/workflows/pipeline-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
default: false
type: boolean

enterprise:
description: Enterprise build
type: boolean

jobs:
build:
name: Build linux
Expand Down Expand Up @@ -115,3 +119,4 @@ jobs:
RI_SERVER_TLS_KEY: ${{ secrets.RI_SERVER_TLS_KEY }}
RI_FEATURES_CONFIG_URL: ${{ secrets.RI_FEATURES_CONFIG_URL }}
RI_UPGRADES_LINK: ${{ secrets.RI_UPGRADES_LINK }}
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == 'false' }}
5 changes: 5 additions & 0 deletions .github/workflows/pipeline-build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
default: false
type: boolean

enterprise:
description: Enterprise build
type: boolean

jobs:
build:
name: Build macos
Expand Down Expand Up @@ -139,3 +143,4 @@ jobs:
RI_SERVER_TLS_KEY: ${{ secrets.RI_SERVER_TLS_KEY }}
RI_FEATURES_CONFIG_URL: ${{ secrets.RI_FEATURES_CONFIG_URL }}
RI_UPGRADES_LINK: ${{ secrets.RI_UPGRADES_LINK }}
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == 'false' }}
5 changes: 5 additions & 0 deletions .github/workflows/pipeline-build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
default: false
type: boolean

enterprise:
description: Enterprise build
type: boolean

jobs:
build:
name: Build windows
Expand Down Expand Up @@ -84,3 +88,4 @@ jobs:
RI_SERVER_TLS_KEY: ${{ secrets.RI_SERVER_TLS_KEY }}
RI_FEATURES_CONFIG_URL: ${{ secrets.RI_FEATURES_CONFIG_URL }}
RI_UPGRADES_LINK: ${{ secrets.RI_UPGRADES_LINK }}
RI_FEATURES_CLOUD_ADS_DEFAULT_FLAG: ${{ inputs.enterprise == 'false' }}
2 changes: 1 addition & 1 deletion redisinsight/ui/src/components/config/Config.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('Config', () => {
await waitFor(() => expect(store.getActions()).not.toContainEqual(getUserSettingsSpec()))
})

it('should render expected actions when envDependant feature is off', () => {
it('should render expected actions when envDependent feature is off', () => {
const initialStoreState = set(
cloneDeep(initialStateDefault),
`app.features.featureFlags.features.${FeatureFlags.envDependent}`,
Expand Down
Loading
Loading