Skip to content

Commit 5a9c145

Browse files
authored
ci(smoke-tests): read secrets for running the tear-down immediately after (#565)
1 parent cf97079 commit 5a9c145

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ jobs:
5050
secrets: |-
5151
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
5252
- run: make smoketest/run
53+
54+
# Secrets are rotated daily, if the benchmarks run between the rotation window, then
55+
# there is a high chance things will stop working
56+
# This is trying to reduce the chances of that happening.
57+
# See https://github.com/elastic/observability-test-environments/actions/workflows/cluster-rotate-api-keys.yml
58+
- uses: google-github-actions/get-secretmanager-secrets@95a0b09b8348ef3d02c68c6ba5662a037e78d713 # v2.1.4
59+
if: always()
60+
with:
61+
export_to_environment: true
62+
secrets: |-
63+
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
64+
5365
- if: always()
5466
name: Tear down
5567
run: make smoketest/cleanup

0 commit comments

Comments
 (0)