Update Helm publishing Drone pipeline (#16542)

The drone S3 uploader plugin requires more and/or different permissions than we allow the repository deploy user, and so won't work with the new repository.

This patch changes the promotion pipeline to use s3 sync instead.
This commit is contained in:
Trent Clarke
2022-09-20 23:09:08 +00:00
committed by GitHub
parent 9d04ee27c2
commit 23878cccc4
+8 -11
View File
@@ -6537,19 +6537,16 @@ steps:
- ls /go/chart
- name: "Helm: Publish chart repository to S3"
image: plugins/s3
settings:
bucket:
image: amazon/aws-cli
environment:
AWS_S3_BUCKET:
from_secret: PRODUCTION_CHARTS_AWS_S3_BUCKET
access_key:
AWS_ACCESS_KEY_ID:
from_secret: PRODUCTION_CHARTS_AWS_ACCESS_KEY_ID
secret_key:
AWS_SECRET_ACCESS_KEY:
from_secret: PRODUCTION_CHARTS_AWS_SECRET_ACCESS_KEY
region: us-east-2
acl: public-read
source: /go/chart/*
target: /
strip_prefix: /go/chart
commands:
- aws s3 sync /go/chart s3://$AWS_S3_BUCKET/
# NOTE: all mandatory steps for a release promotion need to go BEFORE this
# step, as there is a chance that everything afterwards will be skipped.
@@ -7073,6 +7070,6 @@ steps:
WORKSPACE_DIR: /tmp/build-darwin-amd64-connect
---
kind: signature
hmac: 734ceb1c15b758c1f8ef2b9e2ff12c15a238b5a3ff4dfcd1965f6dab65c69b6b
hmac: 1a280d136222885c569a7c4e985fc1927e36dee5e526eb9d0bbc35cd9ddf6f5a
...