From efbe930731d25757f26082a94d7e851ee86d375d Mon Sep 17 00:00:00 2001 From: HenryNguyen5 <6404866+HenryNguyen5@users.noreply.github.com> Date: Fri, 14 Jan 2022 18:39:13 -0500 Subject: [PATCH] Add role duration variable --- .github/actions/build-publish-chainlink/action.yml | 4 ++++ .github/workflows/build-publish.yml | 13 +++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/actions/build-publish-chainlink/action.yml b/.github/actions/build-publish-chainlink/action.yml index b40944bd270..03610a9124d 100644 --- a/.github/actions/build-publish-chainlink/action.yml +++ b/.github/actions/build-publish-chainlink/action.yml @@ -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 @@ -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' diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index b192b5eab67..0afdb240e51 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -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: @@ -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 }}