diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index e99cb1a..017d06c 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -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