Skip to content

Commit

Permalink
ci config changes (influxdata#9001)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivorybilled authored Mar 17, 2021
1 parent f555294 commit 13a4657
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
win: circleci/[email protected]
aws-cli: circleci/[email protected]

executors:
go-1_15:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 13a4657

Please sign in to comment.