Skip to content

Commit c340f21

Browse files
authored
Merge pull request #3 from MarathonLabs/alpha
Add api secret propagation via envvar
2 parents fa06410 + 0a9d92f commit c340f21

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/commands/run_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
description: >
22
Run tests using marathon-cloud cli (cli must be installed first)
33
parameters:
4-
apiKey:
4+
apiKeyEnvVar:
55
type: string
66
description: >
7-
API key for authenticating with Marathon Cloud
7+
Environment variable name with API key for authenticating with Marathon Cloud
88
application:
99
type: string
1010
description: >
@@ -21,7 +21,7 @@ steps:
2121
- run:
2222
name: Run tests using marathon-cloud
2323
environment:
24-
ORB_API_KEY: <<parameters.apiKey>>
24+
ORB_API_KEY_ENV_VAR: <<parameters.apiKeyEnvVar>>
2525
ORB_APPLICATION: <<parameters.application>>
2626
ORB_TEST_APPLICATION: <<parameters.testApplication>>
2727
ORB_OUTPUT: <<parameters.output>>

src/scripts/run-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/usr/bin/env sh
22

3-
marathon-cloud -api-key "$ORB_API_KEY" -apk "$ORB_APPLICATION" -testapk "$ORB_TEST_APPLICATION" -o "$ORB_OUTPUT"
3+
API_KEY=$(eval "echo $ORB_API_KEY_ENV_VAR")
4+
5+
marathon-cloud -api-key "$API_KEY" -apk "$ORB_APPLICATION" -testapk "$ORB_TEST_APPLICATION" -o "$ORB_OUTPUT"

0 commit comments

Comments
 (0)