From 13a4657005daf915b9c41b50c6e7a6f64bba75fb Mon Sep 17 00:00:00 2001 From: David Bennett <71459415+Jagularr@users.noreply.github.com> Date: Wed, 17 Mar 2021 14:52:26 -0400 Subject: [PATCH] ci config changes (#9001) --- .circleci/config.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index ce38bf07f5bb5..8ce079a379ed7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,7 @@ version: 2.1 orbs: win: circleci/windows@2.4.0 + aws-cli: circleci/aws-cli@1.4.0 executors: go-1_15: @@ -179,6 +180,20 @@ jobs: - store_artifacts: path: './dist' destination: 'build/dist' + share-artifacts: + executor: aws-cli/default + steps: + - aws-cli/setup: + profile-name: TIGER + aws-access-key-id: TIGER_AWS_ACCESS_KEY_ID + aws-secret-access-key: TIGER_AWS_SECRET_ACCESS_KEY + aws-region: TIGER_AWS_DEFAULT_REGION + - run: + command: | + PR=${CIRCLE_PULL_REQUEST##*/} + printf -v payload '{ "pullRequestNumber": "%s" }' "$PR" + aws lambda invoke --function-name telegraf-tiger-prod-share_artifacts --profile TIGER --cli-binary-format raw-in-base64-out --payload "$payload" output.json + workflows: version: 2 check: @@ -227,6 +242,13 @@ workflows: - 'test-go-1_15-386' - 'test-go-1_16' - 'test-go-1_16-386' + - 'share-artifacts': + requires: + - 'package' + filters: + branches: + ignore: + - master - 'release': requires: - 'test-go-windows'