Compare commits

...

12 Commits

Author SHA1 Message Date
755c429d04 Merge pull request 'adding infisical action to workflows' (#143) from 141-update-workflows-with-infisical into main
Some checks failed
Main / changes (push) Successful in 18s
Main / build-and-test (push) Has been skipped
Main / deploy (push) Failing after 7s
Reviewed-on: #143
2026-07-13 11:50:29 -04:00
6ea7326a57 adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped
2026-07-13 10:48:28 -05:00
e3f385d0a4 Merge pull request 'adding infisical action to workflows' (#142) from 141-update-workflows-with-infisical into main
Some checks failed
Main / changes (push) Successful in 24s
Main / build-and-test (push) Failing after 21s
Main / deploy (push) Failing after 7s
Reviewed-on: #142
2026-07-13 11:42:21 -04:00
f33a9982cc adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 18s
Pull Request / build-and-test (pull_request) Successful in 1m50s
2026-07-13 10:33:45 -05:00
100fd78551 adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Failing after 20s
2026-07-13 09:31:14 -05:00
a87d35a5e4 adding infisical action to workflows
All checks were successful
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Successful in 1m49s
2026-07-13 09:25:17 -05:00
0c4fe29553 adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 17s
Pull Request / build-and-test (pull_request) Failing after 19s
2026-07-13 09:20:14 -05:00
03c4dacd99 adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Failing after 20s
2026-07-13 09:15:51 -05:00
1ed1a6c48a adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 19s
Pull Request / build-and-test (pull_request) Failing after 16s
2026-07-13 08:51:16 -05:00
4c77ebc1d6 adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 23s
Pull Request / build-and-test (pull_request) Failing after 3s
2026-07-13 08:49:43 -05:00
650ea704aa adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 1m6s
Pull Request / build-and-test (pull_request) Failing after 2m51s
2026-07-13 08:43:03 -05:00
d51e95f59e adding infisical action to workflows
Some checks failed
Pull Request / changes (pull_request) Successful in 57s
Pull Request / build-and-test (pull_request) Failing after 4m0s
2026-07-13 08:04:16 -05:00
8 changed files with 116 additions and 18 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -21,6 +21,16 @@ jobs:
api
client
- name: Get Secrets from Infisical
uses: Infisical/secrets-action@v1.0.16
with:
domain: ${{ secrets.INFISICAL_DOMAIN }}
client-id: ${{ secrets.INFISICAL_CLIENT_ID }}
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
project-slug: ${{ secrets.INFISICAL_PROJECT_SLUG }}
env-slug: ${{ inputs.environment_name }}
secret-path: /flying
- name: Install Nest CLI
run: |
npm install -g @nestjs/cli
@@ -28,7 +38,7 @@ jobs:
- name: 'Setup Node'
uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: |
@@ -44,21 +54,20 @@ jobs:
- name: Build Client
env:
VITE_API_URL: ${{ vars.VITE_API_URL }}
VITE_BASE_URL: ${{ inputs.environment_name == 'test' && vars.VITE_BASE_URL_TEST || vars.VITE_BASE_URL_PROD }}
VITE_CLIENT_ID: ${{ inputs.environment_name == 'test' && vars.VITE_CLIENT_ID_TEST || vars.VITE_CLIENT_ID_PROD }}
VITE_ISSUER_URI: ${{ vars.VITE_ISSUER_URI }}
VITE_TENANT_ID: ${{ vars.VITE_TENANT_ID }}
VITE_API_URL: ${{ env.VITE_API_URL }}
VITE_BASE_URL: ${{ env.VITE_BASE_URL }}
VITE_CLIENT_ID: ${{ env.VITE_CLIENT_ID }}
VITE_ISSUER_URI: ${{ env.VITE_ISSUER_URI }}
VITE_TENANT_ID: ${{ env.VITE_TENANT_ID }}
run: |
printenv
npm run build -w client
- name: Log into Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ env.DOCKERHUB_USERNAME }}
password: ${{ env.DOCKERHUB_TOKEN }}
- name: Setup Docker Buildx
if: ${{ github.event_name != 'pull_request' }}

View File

@@ -21,14 +21,24 @@ jobs:
runs-on: ubuntu-latest
environment: ${{ inputs.environment_name }}
steps:
- name: Get Secrets from Infisical
uses: Infisical/secrets-action@v1.0.16
with:
domain: ${{ secrets.INFISICAL_DOMAIN }}
client-id: ${{ secrets.INFISICAL_CLIENT_ID }}
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
project-slug: ${{ secrets.INFISICAL_PROJECT_SLUG }}
env-slug: ${{ inputs.environment_name }}
secret-path: /flying
- name: Install Azure CLI
run: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- name: Log in to Azure
run: |
az login --service-principal --username ${{ vars.AZURE_CLIENT_ID }} --password ${{ secrets.AZURE_CLIENT_SECRET }} --tenant ${{ vars.AZURE_TENANT_ID }}
az login --service-principal --username ${{ env.AZURE_CLIENT_ID }} --password ${{ env.AZURE_CLIENT_SECRET }} --tenant ${{ env.AZURE_TENANT_ID }}
- name: Update Container App
run: |
az containerapp update --name ${{ inputs.app_name }}-${{ inputs.environment_name }} --container-name ${{ inputs.app_name }} --resource-group ${{ vars.RESOURCE_GROUP }} --image docker.io/noahspan/${{ inputs.app_name }}:${{ inputs.version_number }}
az containerapp update --name ${{ inputs.app_name }}-${{ inputs.environment_name }} --container-name ${{ inputs.app_name }} --resource-group ${{ env.RESOURCE_GROUP }} --image docker.io/noahspan/${{ inputs.app_name }}:${{ inputs.version_number }}

View File

@@ -0,0 +1,43 @@
name: 'Infrastructure'
on:
workflow_dispatch:
inputs:
environment_name:
type: string
jobs:
infrastructure:
runs-on: ubuntu-latest
environment:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
infrastructure
- name: Get Secrets from Infisical
uses: Infisical/secrets-action@v1.0.16
with:
domain: ${{ secrets.INFISICAL_DOMAIN }}
client-id: ${{ secrets.INFISICAL_CLIENT_ID }}
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }}
project-slug: ${{ secrets.INFISICAL_PROJECT_SLUG }}
env-slug: ${{ inputs.environment_name }}
secret-path: /flying/terraform
- name: Setup Terraform
uses: hashicorp/setup-terraform@v4
- name: Terraform init
run: |
terraform init -input=false
- name: Terraform plan
run: |
terraform plan -no-color -input=false
- name: Terraform apply
run: |
terraform apply -no-color -

View File

@@ -14,6 +14,6 @@ jobs:
- changes
uses: ./.gitea/workflows/build_and_test.yaml
with:
environment_name: pull_request
environment_name: test
version_number: ${{ github.run_id }}
secrets: inherit

View File

@@ -1,3 +1,23 @@
# Flying (React and NestJS)
# Flying
A pilot logbook app
A web app for tracking pilot flight hours and sharing flight tracks.
## Built With
## Getting Started
### Prerequisites
### Installation
## Usage
## Roadmap
- [ ] Expense tracking for plane rental, instructor fees, and fuel rates
- [ ] Export logbook to CSV
- [ ]
## License
## Contact

View File

@@ -561,7 +561,7 @@ const Logbook: React.FC<unknown> = () => {
</div>
)}
{!state.isLoading && state.entries.length > 0 && screenSize !== ScreenSize.SM && screenSize !== ScreenSize.MD && (
<div className='col-span-12 pr-5 pb-5 pl-5 bg-base-100 border border-base-100 rounded-lg '>
<div className='col-span-12 pr-5 pb-5 pl-5 bg-base-100 border border-base-100 rounded-lg'>
<div className='overflow-x-auto mb-5'>
<div className='col-span-12 justify-self-end self-center mt-1 mr-1 mb-2'>
<label className='select select-sm select-ghost'>

View File

@@ -9,9 +9,24 @@ services:
- '10001:10001'
- '10002:10002'
command: 'azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 --loose --skipApiVersionCheck'
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "10000"]
volumes:
- ./azurite-data:/data
seed:
image: mcr.microsoft.com/azure-cli
depends_on:
azurite:
condition: service_healthy
volumes:
- ./seed-data:/data
entrypoint: >
sh -c "
az storage container create --name mycontainer --connection-string 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;' &&
az storage blob upload-batch --destination mycontainer --source /data --connection-string 'DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;'
"
restore:
container_name: restore
image: litestream/litestream:0.3.13
@@ -51,6 +66,7 @@ services:
condition: service_started
volumes:
# azurite-data:
azurite-data:
backup:
data:
seed-data: