Skip to content

Commit

Permalink
github-actions: use github secrets (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jun 19, 2024
1 parent e2eb5e6 commit bae2a2d
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ concurrency:
env:
# (keep_serverless-staging-oblt, keep_serverless-qa-oblt or serverless-production-oblt)
SERVERLESS_PROJECT: serverless-production-oblt
# (staging, qa or pro)
VAULT_SECRET_SUFFIX: pro
# Secrets managed through IasC, if you need a different environment please reach the obs robots team
## TODO: Use Keyless
E2E__BROWSEREMAIL: ${{ secrets.OBSERVABILITY_EC_USERNAME }}
E2E__BROWSERPASSWORD: ${{ secrets.OBSERVABILITY_EC_PASSWORD }}

# NOTE: if you add a new job and it's a mandatory check then
# update e2e-docs.yml
Expand All @@ -49,17 +51,6 @@ jobs:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
cluster-name: ${{ env.SERVERLESS_PROJECT }}

- 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
- name: End-to-end tests
run: ./build.sh test --test-suite=e2e
env:
Expand Down

0 comments on commit bae2a2d

Please sign in to comment.