Skip to content

Commit

Permalink
redeploy prod API service on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Apr 14, 2024
1 parent 3cc6b0b commit 0d574ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Redeploy API service
env:
CLUSTER: ${{ secrets.ECS_CLUSTER }}
SERVICE: ${{ secrets.ECS_SERVICE }}
REGION: us-east-1
run: |
aws ecs update-service --cluster $CLUSTER --service $SERVICE --force-new-deployment --region $REGION

0 comments on commit 0d574ba

Please sign in to comment.