CI: Cleanup - Remove security related steps (#70788)
* Remove security related steps * More cleanup
This commit is contained in:
@@ -4,7 +4,6 @@ This module returns all the pipelines used in the event of a release along with
|
||||
|
||||
load(
|
||||
"scripts/drone/steps/lib.star",
|
||||
"artifacts_page_step",
|
||||
"build_backend_step",
|
||||
"build_docker_images_step",
|
||||
"build_frontend_package_step",
|
||||
@@ -525,7 +524,6 @@ def enterprise2_pipelines(prefix = "", ver_mode = ver_mode, trigger = release_tr
|
||||
publish_images_step(
|
||||
"enterprise2",
|
||||
"release",
|
||||
mode = "enterprise2",
|
||||
docker_repo = "${{DOCKER_ENTERPRISE2_REPO}}",
|
||||
),
|
||||
],
|
||||
@@ -556,23 +554,16 @@ def enterprise2_pipelines(prefix = "", ver_mode = ver_mode, trigger = release_tr
|
||||
|
||||
return pipelines
|
||||
|
||||
def publish_artifacts_step(mode):
|
||||
security = ""
|
||||
if mode == "security":
|
||||
security = "--security "
|
||||
def publish_artifacts_step():
|
||||
return {
|
||||
"name": "publish-artifacts",
|
||||
"image": images["publish_image"],
|
||||
"environment": {
|
||||
"GCP_KEY": from_secret("gcp_key"),
|
||||
"PRERELEASE_BUCKET": from_secret("prerelease_bucket"),
|
||||
"ENTERPRISE2_SECURITY_PREFIX": from_secret("enterprise2_security_prefix"),
|
||||
"SECURITY_DEST_BUCKET": from_secret("security_dest_bucket"),
|
||||
},
|
||||
"commands": [
|
||||
"./bin/build artifacts packages {}--tag $${{DRONE_TAG}} --src-bucket $${{PRERELEASE_BUCKET}}".format(
|
||||
security,
|
||||
),
|
||||
"./bin/build artifacts packages --tag $${{DRONE_TAG}} --src-bucket $${{PRERELEASE_BUCKET}}",
|
||||
],
|
||||
"depends_on": ["compile-build-cmd"],
|
||||
}
|
||||
@@ -622,11 +613,10 @@ def publish_artifacts_pipelines(mode):
|
||||
}
|
||||
steps = [
|
||||
compile_build_cmd(),
|
||||
publish_artifacts_step(mode),
|
||||
publish_artifacts_step(),
|
||||
publish_static_assets_step(),
|
||||
publish_storybook_step(),
|
||||
]
|
||||
if mode != "security":
|
||||
steps.extend([publish_storybook_step()])
|
||||
|
||||
return [
|
||||
pipeline(
|
||||
@@ -709,27 +699,6 @@ def publish_npm_pipelines():
|
||||
),
|
||||
]
|
||||
|
||||
def artifacts_page_pipeline():
|
||||
trigger = {
|
||||
"event": ["promote"],
|
||||
"target": "security",
|
||||
}
|
||||
return [
|
||||
pipeline(
|
||||
name = "publish-artifacts-page",
|
||||
trigger = trigger,
|
||||
steps = [
|
||||
download_grabpl_step(),
|
||||
clone_enterprise_step(source = "${DRONE_TAG}"),
|
||||
init_enterprise_step("release"),
|
||||
compile_build_cmd("enterprise"),
|
||||
artifacts_page_step(),
|
||||
],
|
||||
edition = "enterprise",
|
||||
environment = {"EDITION": "enterprise"},
|
||||
),
|
||||
]
|
||||
|
||||
def integration_test_pipelines():
|
||||
"""
|
||||
Trigger integration tests on release builds
|
||||
|
||||
Reference in New Issue
Block a user