Skip to content

Commit

Permalink
Update workflows main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jrzvnn committed Sep 11, 2023
1 parent a6da6a0 commit c4383dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Docker Image CI/CD to ECR

on:
push:
branches:
- main # Adjust the branch name as needed
branches: [ main ] # Adjust the branch name as needed

jobs:
build-and-push-images:
build-and-push:
name: Build and push to ECR
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -19,6 +18,10 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR
id: Login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Run Docker image push script
run: |
Expand Down

0 comments on commit c4383dc

Please sign in to comment.