diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 147c667..08f4593 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,7 +21,7 @@ jobs: - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam::654654236858:role/GithubActions + role-to-assume: ${{ secrets.ACTIONS_ROLE_ARN }} role-session-name: GitHub_to_AWS_via_FederatedOIDC aws-region: us-east-2 @@ -31,10 +31,14 @@ jobs: - name: Build and Push Docker image env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry}} - REPOSITORY: hch - IMAGE_TAG: ${{ github.sha}} - DATABASE_URL: 'file:./dev.db' + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + REPOSITORY: ${{ vars.REPOSITORY }} + IMAGE_TAG: ${{ github.sha }} + DATABASE_URL: "file:./dev.db" + CLUSTER_NAME: ${{ secrets.CLUSTER_NAME }} + SERVICE_NAME: ${{ vars.REPOSITORY }}-prod-service run: | docker build --output type=image,push=true --platform linux/arm64 -t $ECR_REGISTRY/$REPOSITORY:$IMAGE_TAG . docker build --output type=image,push=true --platform linux/arm64 -t $ECR_REGISTRY/$REPOSITORY:prod . + aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment --output text --query "service.serviceName" >/dev/null + echo "The container will update now" diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index ddd08ac..72a7398 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -21,7 +21,7 @@ jobs: - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: arn:aws:iam::654654236858:role/GithubActions + role-to-assume: ${{ secrets.ACTIONS_ROLE_ARN }} role-session-name: GitHub_to_AWS_via_FederatedOIDC aws-region: us-east-2 @@ -31,10 +31,14 @@ jobs: - name: Build and Push Docker image env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry}} - REPOSITORY: hch - IMAGE_TAG: ${{ github.sha}} - DATABASE_URL: 'file:./dev.db' + ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} + REPOSITORY: ${{ vars.REPOSITORY }} + IMAGE_TAG: ${{ github.sha }} + DATABASE_URL: "file:./dev.db" + CLUSTER_NAME: ${{ secrets.CLUSTER_NAME }} + SERVICE_NAME: ${{ vars.REPOSITORY }}-stage-service run: | docker build --output type=image,push=true --platform linux/arm64 -t $ECR_REGISTRY/$REPOSITORY:$IMAGE_TAG . docker build --output type=image,push=true --platform linux/arm64 -t $ECR_REGISTRY/$REPOSITORY:stage . + aws ecs update-service --cluster $CLUSTER_NAME --service $SERVICE_NAME --force-new-deployment --output text --query "service.serviceName" >/dev/null + echo "The container will update now" diff --git a/app/pages/calendar.vue b/app/pages/calendar.vue index 2752169..85108a3 100644 --- a/app/pages/calendar.vue +++ b/app/pages/calendar.vue @@ -692,14 +692,30 @@ Session name will be auto-generated as Firstname_Lastname_##.
-
{{ createTimeRangeError }}
diff --git a/app/pages/clients/index.vue b/app/pages/clients/index.vue
index 6f099bf..00afe37 100644
--- a/app/pages/clients/index.vue
+++ b/app/pages/clients/index.vue
@@ -1,348 +1,348 @@
-
@@ -491,47 +491,47 @@
row.original.status === 'Active' && row.original.therapyWeek !== null
? `${row.original.therapyWeek} / 26`
: row.original.status === 'Active'
- ? '—'
+ ? '?'
: ''
}}
-
-