[v10.0.x] CI: Cleanup - Remove security related steps (#70795)

CI: Cleanup - Remove security related steps (#70788)

* Remove security related steps

* More cleanup

(cherry picked from commit 7f55ba9c6e)
This commit is contained in:
Dimitris Sotirakis
2023-06-28 11:38:39 +03:00
committed by GitHub
parent 93c2e36d07
commit ead5e970db
7 changed files with 24 additions and 295 deletions
+4 -35
View File
@@ -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",
@@ -523,7 +522,6 @@ def enterprise2_pipelines(prefix = "", ver_mode = ver_mode, trigger = release_tr
publish_images_step(
"enterprise2",
"release",
mode = "enterprise2",
docker_repo = "${{DOCKER_ENTERPRISE2_REPO}}",
),
],
@@ -554,23 +552,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"],
}
@@ -620,11 +611,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(
@@ -707,27 +697,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