diff --git a/.github/workflows/template-deploy.yaml b/.github/workflows/template-deploy.yaml index 455c4b7a..16df1c19 100644 --- a/.github/workflows/template-deploy.yaml +++ b/.github/workflows/template-deploy.yaml @@ -20,7 +20,7 @@ on: required: false type: string search_db: - description: runs playwright tests + description: elasticsearch or opensearch required: false default: elasticsearch type: string @@ -40,8 +40,9 @@ jobs: - uses: actions/checkout@v4 - name: change search db - run: >- - sed -i 's/SEARCH_DB=elasticsearch/SEARCH_DB=opensearch/g' .env + if: ${{ contains(inputs.search_db, 'elasticsearch') }} + run: | + sudo sed -i 's/SEARCH_DB=elasticsearch/SEARCH_DB=opensearch/g' .env - name: Login to private registry if: ${{ inputs.directory != 'docker-compose/camunda-8.6' }} diff --git a/.github/workflows/test-core-opensearch.yaml b/.github/workflows/test-core-opensearch.yaml index e4323ff9..78c89ce7 100644 --- a/.github/workflows/test-core-opensearch.yaml +++ b/.github/workflows/test-core-opensearch.yaml @@ -8,6 +8,6 @@ jobs: uses: ./.github/workflows/template-deploy.yaml secrets: inherit with: - compose_args: "-f docker-compose-core.opensearch.yaml --profile opensearch" + compose_args: "-f docker-compose-core.yaml --profile opensearch" run_e2e_tests: false - search_db: opensearch \ No newline at end of file + search_db: opensearch diff --git a/.github/workflows/test-default.opensearch.yaml b/.github/workflows/test-default.opensearch.yaml index d2d3169d..1d182384 100644 --- a/.github/workflows/test-default.opensearch.yaml +++ b/.github/workflows/test-default.opensearch.yaml @@ -10,4 +10,4 @@ jobs: with: compose_args: "-f docker-compose.yaml --profile opensearch" run_e2e_tests: false - search_db: opensearch \ No newline at end of file + search_db: opensearch diff --git a/.github/workflows/test-modeler.opensearch.yaml b/.github/workflows/test-modeler.opensearch.yaml index 096b593a..bc6077b7 100644 --- a/.github/workflows/test-modeler.opensearch.yaml +++ b/.github/workflows/test-modeler.opensearch.yaml @@ -10,4 +10,4 @@ jobs: with: compose_args: "-f docker-compose.yaml -f docker-compose-web-modeler.yaml --profile opensearch" run_e2e_tests: true - search_db: opensearch \ No newline at end of file + search_db: opensearch