Skip to content

Commit

Permalink
Update github actions workflow for AWS ECR deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aahil13 committed Aug 19, 2024
1 parent 3d54799 commit 37926c2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Publish Docker image
name: Build and Push Docker Image to AWS ECR

on:

push:
branches: [ main ]
pull_request:
branches: [ main ]
push:
branches:
- main

jobs:
push_to_registry:
name: Push Docker image to Docker HUB
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to AWS ECR
Expand Down

0 comments on commit 37926c2

Please sign in to comment.