Skip to content

Commit

Permalink
ci(e2e): prepare the browser email and password (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Feb 13, 2024
1 parent e96c8d2 commit 86cf85e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

env:
# keep_serverless-staging-oblt OR keep_serverless-qa-oblt
# (keep_serverless-staging-oblt, keep_serverless-qa-oblt or serverless-production-oblt)
SERVERLESS_PROJECT: serverless-production-oblt
# (staging, qa or production)
VAULT_SECRET_SUFFIX: production

# NOTE: if you add a new job and it's a mandatory check then
# update e2e-docs.yml
Expand Down Expand Up @@ -56,3 +58,14 @@ jobs:
# TODO: run the e2e targeting the required endpoint.
# those values can be found in https://github.com/elastic/apm-pipeline-library/tree/main/.github/actions/oblt-cli-cluster-credentials#outputs
- run: curl -X GET "${ELASTICSEARCH_HOST}/_cat/indices?v" -u ${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}

- name: Get the browser email and password from Vault
uses: hashicorp/[email protected]
with:
url: ${{ secrets.VAULT_ADDR }}
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
method: approle
secrets: |
secret/observability-team/ci/elastic-cloud/observability-team-${{ env.VAULT_SECRET_SUFFIX }} username | E2E__BROWSEREMAIL
secret/observability-team/ci/elastic-cloud/observability-team-${{ env.VAULT_SECRET_SUFFIX }} password | E2E__BROWSERPASSWORD

0 comments on commit 86cf85e

Please sign in to comment.