From f3a32fff996a22790637d1288d9c5aa0ebd10ae9 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Thu, 4 Mar 2021 16:30:32 +0300 Subject: [PATCH] chore: expire objects in CI S3 bucket Otherwise we can quickly overflow our storage backend. Signed-off-by: Andrey Smirnov --- .drone.jsonnet | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.jsonnet b/.drone.jsonnet index ceadda23f6..e6e95680e2 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -275,6 +275,7 @@ local save_artifacts = { }, commands: [ 's3cmd --host=rook-ceph-rgw-ci-store.rook-ceph.svc --host-bucket=rook-ceph-rgw-ci-store.rook-ceph.svc --no-ssl mb s3://${CI_COMMIT_SHA}${DRONE_TAG//./-}', + 's3cmd --host=rook-ceph-rgw-ci-store.rook-ceph.svc --host-bucket=rook-ceph-rgw-ci-store.rook-ceph.svc --no-ssl expire s3://${CI_COMMIT_SHA}${DRONE_TAG//./-} --expiry-days=3', 's3cmd --host=rook-ceph-rgw-ci-store.rook-ceph.svc --host-bucket=rook-ceph-rgw-ci-store.rook-ceph.svc --no-ssl --stats sync _out s3://${CI_COMMIT_SHA}${DRONE_TAG//./-}', ], volumes: volumes.ForStep(),