Skip to content

Commit

Permalink
Use env section of job
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Dec 26, 2023
1 parent 5cfec43 commit 9fef54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/cypress-test-oidc-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
OPENSEARCH_INITIAL_ADMIN_PASSWORD: admin

steps:
- name: Set up JDK
Expand Down Expand Up @@ -157,13 +159,6 @@ jobs:
echo "THIS IS THE SECURITY CONFIG FILE: "
cat config.yml
# TODO: REMOVE THIS ONCE ADMIN JAVA TOOL SUPPORT IT
- name: SET OPENSEARCH_INITIAL_ADMIN_PASSWORD env variable
if: ${{ runner.os == 'Linux'}}
run:
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
shell: bash

# Run any configuration scripts
- name: Run Setup Script for Linux
if: ${{ runner.os == 'Linux' }}
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/cypress-test-saml-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
OPENSEARCH_INITIAL_ADMIN_PASSWORD: admin

steps:
- name: Set up JDK
Expand Down Expand Up @@ -57,13 +59,6 @@ jobs:
rm -f opensearch-*.tar.gz
shell: bash

# TODO: REMOVE THIS ONCE ADMIN JAVA TOOL SUPPORT IT
- name: Set OPENSEARCH_INITIAL_ADMIN_PASSWORD env variable
if: ${{ runner.os == 'Linux'}}
run:
export OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
shell: bash

# Install the security plugin
- name: Install Plugin into OpenSearch for Linux
if: ${{ runner.os == 'Linux'}}
Expand Down

0 comments on commit 9fef54e

Please sign in to comment.