Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
14 changes: 9 additions & 5 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
24 changes: 20 additions & 4 deletions app/pages/calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -692,14 +692,30 @@
Session name will be auto-generated as <strong>Firstname_Lastname_##</strong>.
</p>

<UTextarea v-model="form.description" placeholder="Description" />
<div>
<label class="mb-2 block text-sm font-medium" for="create-description">Description</label>
<UTextarea
id="create-description"
v-model="form.description"
placeholder="Optional notes for this session"
/>
</div>

<div class="grid grid-cols-3 gap-4">
<UInput v-model="form.date" type="date" />
<div>
<label class="mb-2 block text-sm font-medium" for="create-date">Date</label>
<UInput id="create-date" v-model="form.date" type="date" />
</div>

<UInput v-model="form.startTime" type="time" />
<div>
<label class="mb-2 block text-sm font-medium" for="create-start-time">Start Time</label>
<UInput id="create-start-time" v-model="form.startTime" type="time" />
</div>

<UInput v-model="form.endTime" type="time" />
<div>
<label class="mb-2 block text-sm font-medium" for="create-end-time">End Time</label>
<UInput id="create-end-time" v-model="form.endTime" type="time" />
</div>
</div>
<p v-if="createTimeRangeError" class="text-sm text-red-500">
{{ createTimeRangeError }}
Expand Down
Loading
Loading