Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav7797 authored Sep 20, 2024
1 parent 49e0f9b commit 90e5ca0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ on:
type: string
WORKING_DIRECTORY:
required: false
type: string
type: string
role_arn:
required: false
type: string # Root role ARN to assume
type: string
assume_role_arn:
required: false
type: string # ARN for the role to assume with STS
Expand All @@ -43,7 +43,7 @@ on:
description: 'AWS Secret access key to install AWS CLI'
AWS_SESSION_TOKEN:
required: false
description: 'AWS Session Token to install AWS CLI'
description: 'AWS Session Token to install AWS CLI'
DOCKERHUB_USERNAME:
description: 'dockerhub username'
required: false
Expand Down Expand Up @@ -84,12 +84,11 @@ jobs:
role-to-assume: ${{ inputs.assume_role_arn }}
role-session-name: github
aws-region: ${{ inputs.aws_region }}

- name: Verify awscli
run: |
aws sts get-caller-identity
- name: Login to Amazon ECR
if: ${{ inputs.provider == 'aws' }}
id: login-ecr
Expand Down Expand Up @@ -123,4 +122,4 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker build -t $images:$IMAGE_TAG BUILD_PATH
docker push $images:$IMAGE_TAG
...
...

0 comments on commit 90e5ca0

Please sign in to comment.