Custom step file support
parent
3737200c1b
commit
9b8f2383de
|
|
@ -4456,7 +4456,7 @@ class CloudRunnerCustomSteps {
|
||||||
if (cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests) {
|
if (cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests) {
|
||||||
cloud_runner_logger_1.default.log(`Parsing build steps: ${steps}`);
|
cloud_runner_logger_1.default.log(`Parsing build steps: ${steps}`);
|
||||||
}
|
}
|
||||||
object = yaml_1.default.parse(steps);
|
object = steps[0] === `-` ? yaml_1.default.parse(steps) : [yaml_1.default.parse(steps)];
|
||||||
for (const step of object) {
|
for (const step of object) {
|
||||||
step.secrets = step.secrets.map((x) => {
|
step.secrets = step.secrets.map((x) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,3 +1,3 @@
|
||||||
hook: after
|
hook: after
|
||||||
commands: |
|
commands: |
|
||||||
echo "after-build step test!"
|
echo "after-build step test!"
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
hook: before
|
hook: before
|
||||||
commands: |
|
commands: |
|
||||||
echo "before-build step test!"
|
echo "before-build step test!"
|
||||||
|
|
@ -40,7 +40,7 @@ export class CloudRunnerCustomSteps {
|
||||||
if (CloudRunner.buildParameters.cloudRunnerIntegrationTests) {
|
if (CloudRunner.buildParameters.cloudRunnerIntegrationTests) {
|
||||||
CloudRunnerLogger.log(`Parsing build steps: ${steps}`);
|
CloudRunnerLogger.log(`Parsing build steps: ${steps}`);
|
||||||
}
|
}
|
||||||
object = YAML.parse(steps);
|
object = steps[0] === `-` ? YAML.parse(steps) : [YAML.parse(steps)];
|
||||||
for (const step of object) {
|
for (const step of object) {
|
||||||
step.secrets = step.secrets.map((x) => {
|
step.secrets = step.secrets.map((x) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue