Skip to content

Commit

Permalink
Add role duration variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Jan 14, 2022
1 parent a8d7533 commit efbe930
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build-publish-chainlink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ inputs:
aws-role-to-assume:
description: The AWS role to assume as the CD user, if any. Used in configuring the docker/login-action
required: false
aws-role-duration-seconds:
description: The duration of the role assumed
required: false
aws-region:
description: The AWS region the ECR repository is located in, should only be needed for public ECR repositories, used in configuring docker/login-action
required: false
Expand Down Expand Up @@ -71,6 +74,7 @@ runs:
aws-access-key-id: ${{ inputs.aws-access-key-id }}
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
role-to-assume: ${{ inputs.aws-role-to-assume }}
role-duration-seconds: ${{ inputs.aws-role-duration-seconds }}
aws-region: ${{ inputs.aws-region }}

- if: inputs.publish == 'true'
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: 'Build Chainlink and Publish'
on:
# Mimics old circleci behaviour
push:
tags:
- 'v*'
branches:
- master
- develop
- 'release/*'
# tags:
# - 'v*'
# branches:
# - master
# - develop
# - 'release/*'

jobs:
build-publish-chainlink:
Expand All @@ -26,4 +26,5 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-role-duration-seconds: ${{ secrets.AWS_ROLE_DURATION_SECONDS }}
aws-region: ${{ secrets.AWS_REGION }}

0 comments on commit efbe930

Please sign in to comment.