Skip to content

Commit

Permalink
🔐 add cd for app (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangchhe authored Sep 11, 2024
1 parent 4b47ff0 commit 7100fb2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,19 @@ jobs:

- name: Push Docker image to Amazon ECR
run: docker push ${{ secrets.ECR_REPOSITORY_URI }}:latest

deploy:
runs-on: ubuntu-latest
needs: dockerize

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Deploy Application
run: aws ecs update-service --cluster ${{ secrets.ECS_CLUSTER_NAME }} --service ${{ secrets.DEV_ECS_API_SERVICE_NAME }} --force-new-deployment

0 comments on commit 7100fb2

Please sign in to comment.