Skip to content

Commit

Permalink
Merge pull request #4 from viralparmarme/feature/docker
Browse files Browse the repository at this point in the history
Fix deployment YML file
  • Loading branch information
viralparmarme authored Sep 26, 2023
2 parents 225ede5 + d0ac998 commit f0ee959
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
build:
name: Build image
runs-on: ubuntu-latest
- name: Checkout repo
uses: actions/checkout@v3

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -23,7 +24,7 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
mask-password: 'true'
mask-password: "true"

- name: Build, tag, and push docker image to Amazon ECR
env:
Expand All @@ -32,4 +33,4 @@ jobs:
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG
docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG

0 comments on commit f0ee959

Please sign in to comment.