Update cicd.yml #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cicd-workflow to create docker image and upload into Dockerhub | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::211223789150:role/aws-ecr-role-feb-23 | |
role-scope: 'region' | |
aws-region: us-east-1 | |
role-duration-seconds: 900 # Adjust this value as needed |