mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 16:25:21 -04:00
ci: use aws s3 client that invalidates cloudfront cache for places that modify Constellation api (#1839)
This commit is contained in:
parent
93569ff54c
commit
e1d3afe8d4
29 changed files with 398 additions and 186 deletions
|
@ -27,6 +27,7 @@ type commonFlags struct {
|
|||
timestamp time.Time
|
||||
region string
|
||||
bucket string
|
||||
distributionID string
|
||||
out string
|
||||
logLevel zapcore.Level
|
||||
}
|
||||
|
@ -75,6 +76,10 @@ func parseCommonFlags(cmd *cobra.Command) (commonFlags, error) {
|
|||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
}
|
||||
distributionID, err := cmd.Flags().GetString("distribution-id")
|
||||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
}
|
||||
out, err := cmd.Flags().GetString("out")
|
||||
if err != nil {
|
||||
return commonFlags{}, err
|
||||
|
@ -96,6 +101,7 @@ func parseCommonFlags(cmd *cobra.Command) (commonFlags, error) {
|
|||
timestamp: timestmp,
|
||||
region: region,
|
||||
bucket: bucket,
|
||||
distributionID: distributionID,
|
||||
out: out,
|
||||
logLevel: logLevel,
|
||||
}, nil
|
||||
|
@ -201,9 +207,10 @@ func parseGCPFlags(cmd *cobra.Command) (gcpFlags, error) {
|
|||
}
|
||||
|
||||
type s3Flags struct {
|
||||
region string
|
||||
bucket string
|
||||
logLevel zapcore.Level
|
||||
region string
|
||||
bucket string
|
||||
distributionID string
|
||||
logLevel zapcore.Level
|
||||
}
|
||||
|
||||
func parseS3Flags(cmd *cobra.Command) (s3Flags, error) {
|
||||
|
@ -215,6 +222,10 @@ func parseS3Flags(cmd *cobra.Command) (s3Flags, error) {
|
|||
if err != nil {
|
||||
return s3Flags{}, err
|
||||
}
|
||||
distributionID, err := cmd.Flags().GetString("distribution-id")
|
||||
if err != nil {
|
||||
return s3Flags{}, err
|
||||
}
|
||||
verbose, err := cmd.Flags().GetBool("verbose")
|
||||
if err != nil {
|
||||
return s3Flags{}, err
|
||||
|
@ -225,9 +236,10 @@ func parseS3Flags(cmd *cobra.Command) (s3Flags, error) {
|
|||
}
|
||||
|
||||
return s3Flags{
|
||||
region: region,
|
||||
bucket: bucket,
|
||||
logLevel: logLevel,
|
||||
region: region,
|
||||
bucket: bucket,
|
||||
distributionID: distributionID,
|
||||
logLevel: logLevel,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue