Skip to content

Commit

Permalink
Update main.yaml
Browse files Browse the repository at this point in the history
added credentials
  • Loading branch information
Simbaa815 authored Jan 27, 2024
1 parent b2a95b4 commit 211790c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'ap-south-1'
aws-region: ${{ secrets.AWS_REGION }}

- name: Login to Amazon ECR
id: login-ecr
Expand All @@ -31,7 +31,7 @@ jobs:
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
REPOSITORY: nodejs
REPOSITORY: cicd-node
run: |
docker build -t $ECR_REGISTRY/$REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$REPOSITORY:$IMAGE_TAG
Expand All @@ -42,13 +42,13 @@ jobs:
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: nodejs-app-task-definition.json
container-name: Nodejs-app
container-name: cicd-node
image: ${{ steps.build-image.outputs.image }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: nodejs-app-service-1
cluster: Nodejs
service: cicd-node
cluster: cicd-node
wait-for-service-stability: true

0 comments on commit 211790c

Please sign in to comment.