-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github-actions: use github secrets (#111)
- Loading branch information
Showing
1 changed file
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|