From 3d897800ae117f66426de29cddd1c1ffa1640781 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 4 Jul 2022 13:22:53 +0545 Subject: [PATCH] meltwater cache is removed, s3_cache is used --- .drone.star | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.drone.star b/.drone.star index da9f69e2a2f..0a0ab16b234 100644 --- a/.drone.star +++ b/.drone.star @@ -6,7 +6,6 @@ NOTIFICATIONS = 3 ALPINE_GIT = "alpine/git:latest" DEEPDRIVER_DOCKER_ORACLE_XE_11G = "deepdiver/docker-oracle-xe-11g:latest" DRONE_CLI_ALPINE = "drone/cli:alpine" -MELTWATER_DRONE_CACHE = "meltwater/drone-cache:v1" MINIO_MC = "minio/mc:RELEASE.2021-03-23T05-46-11Z" OC_CI_ALPINE = "owncloudci/alpine:latest" OC_CI_BAZEL_BUILDIFIER = "owncloudci/bazel-buildifier" @@ -27,6 +26,7 @@ PLUGINS_GH_PAGES = "plugins/gh-pages:1" PLUGINS_GIT_ACTION = "plugins/git-action:1" PLUGINS_GITHUB_RELEASE = "plugins/github-release:1" PLUGINS_S3 = "plugins/s3" +PLUGINS_S3_CACHE = "plugins/s3-cache:1" PLUGINS_SLACK = "plugins/slack:1" SELENIUM_STANDALONE_CHROME_DEBUG = "selenium/standalone-chrome-debug:3.141.59" SELENIUM_STANDALONE_FIREFOX_DEBUG = "selenium/standalone-firefox-debug:3.141.59" @@ -2935,26 +2935,20 @@ def genericCache(name, action, mounts, cache_key): step = { "name": "%s_%s" % (action, name), - "image": MELTWATER_DRONE_CACHE, - "environment": { - "AWS_ACCESS_KEY_ID": { - "from_secret": "cache_s3_access_key", - }, - "AWS_SECRET_ACCESS_KEY": { - "from_secret": "cache_s3_secret_key", - }, - }, + "image": PLUGINS_S3_CACHE, "settings": { "endpoint": { "from_secret": "cache_s3_endpoint", }, - "bucket": "cache", - "region": "us-east-1", # not used at all, but fails if not given! - "path_style": "true", - "cache_key": cache_key, "rebuild": rebuild, "restore": restore, "mount": mounts, + "access_key": { + "from_secret": "cache_s3_access_key", + }, + "secret_key": { + "from_secret": "cache_s3_secret_key", + }, }, } return step