Skip to content

Commit 271e23e

Browse files
committed
add buildkite helper script to propagate env vars from docker
1 parent d748a9e commit 271e23e

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
# Main purpose of this is script is to wrap around rosetta-block-race-with-data.sh
4+
# So env vars from docker buildkite step are passed down to the script
5+
6+
./scripts/rosetta-block-race-with-data.sh \
7+
--mina-exe mina \
8+
--archive-exe mina-archive \
9+
--rosetta-exe mina-rosetta \
10+
--postgres-port ${PG_PORT} \
11+
--postgres-user ${POSTGRES_USER} \
12+
--postgres-password ${POSTGRES_PASSWORD} \
13+
--postgres-db ${POSTGRES_DB} \
14+
--postgres-host localhost

buildkite/src/Command/RosettaBlockRaceTest.dhall

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ in { step =
2828
, buildFlags = BuildFlags.Type.Instrumented
2929
}
3030
)
31-
( "./scripts/rosetta-block-race-with-data.sh "
32-
++ "--mina-exe mina "
33-
++ "--archive-exe mina-archive "
34-
++ "--rosetta-exe mina-rosetta "
35-
++ "--postgres-port \\\${PG_PORT} "
36-
++ "--postgres-user \\\${POSTGRES_USER} "
37-
++ "--postgres-password \\\${POSTGRES_PASSWORD} "
38-
++ "--postgres-db \\\${POSTGRES_DB} "
39-
++ "--postgres-host localhost "
31+
( ".buildkite/scripts/rosetta-block-race-with-data.sh "
4032
++ "&& buildkite/scripts/upload-partial-coverage-data.sh ${key}"
4133
)
4234
]

0 commit comments

Comments
 (0)