Skip to content

Commit

Permalink
updated drone file to display pipeline in order by trigger (#8823)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwolAmatya authored Apr 15, 2024
1 parent d13088c commit f8a7136
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -246,33 +246,35 @@ def main(ctx):

pipelines = []

build_release_helpers = [
changelog(),
docs(),
licenseCheck(ctx),
]

test_pipelines = \
codestyle(ctx) + \
checkTestSuitesInExpectedFailures(ctx) + \
buildWebCache(ctx) + \
getGoBinForTesting(ctx) + \
[buildOcisBinaryForTesting(ctx)] + \
checkStarlark() + \
build_release_helpers + \
testOcisAndUploadResults(ctx) + \
testPipelines(ctx)

build_release_pipelines = \
[licenseCheck(ctx)] + \
dockerReleases(ctx) + \
binaryReleases(ctx)

build_release_helpers = [
changelog(),
docs(),
]

test_pipelines.append(
pipelineDependsOn(
purgeBuildArtifactCache(ctx),
testPipelines(ctx),
),
)

pipelines = test_pipelines + build_release_pipelines + build_release_helpers
pipelines = test_pipelines + build_release_pipelines

if ctx.build.event == "cron":
pipelines = \
Expand All @@ -296,7 +298,6 @@ def main(ctx):

pipelines = pipelines + k6LoadTests(ctx)

pipelines += checkStarlark()
pipelineSanityChecks(ctx, pipelines)
return pipelines

Expand Down Expand Up @@ -331,7 +332,7 @@ def testOcisAndUploadResults(ctx):
scan_result_upload["depends_on"] = getPipelineNames([pipeline])

security_scan = scanOcis(ctx)
return [pipeline, scan_result_upload, security_scan]
return [security_scan, pipeline, scan_result_upload]

def testPipelines(ctx):
pipelines = []
Expand Down

0 comments on commit f8a7136

Please sign in to comment.