Changes so that postgres/mysql services in Drone maps their data volumes
to tmpfs volumes (memory) to improve performance.
(cherry picked from commit 5bec46ce23)
This commit is contained in:
@@ -7,7 +7,7 @@ load(
|
||||
load('scripts/drone/vault.star', 'from_secret', 'github_token', 'pull_secret', 'drone_token')
|
||||
|
||||
def pipeline(
|
||||
name, edition, trigger, steps, services=[], platform='linux', depends_on=[],
|
||||
name, edition, trigger, steps, services=[], platform='linux', depends_on=[], volumes=[],
|
||||
):
|
||||
if platform != 'windows':
|
||||
platform_conf = {
|
||||
@@ -48,6 +48,7 @@ def pipeline(
|
||||
}],
|
||||
'depends_on': depends_on,
|
||||
}
|
||||
pipeline['volumes'].extend(volumes)
|
||||
pipeline.update(platform_conf)
|
||||
|
||||
if edition in ('enterprise', 'enterprise2'):
|
||||
|
||||
Reference in New Issue
Block a user