switching to sqlite
This commit is contained in:
15
.github/workflows/api_build.yaml
vendored
15
.github/workflows/api_build.yaml
vendored
@@ -20,12 +20,6 @@ jobs:
|
||||
sparse-checkout: |
|
||||
api
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
|
||||
- name: Install Nest CLI
|
||||
run: |
|
||||
npm install -g @nestjs/cli
|
||||
@@ -37,16 +31,11 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pnpm install
|
||||
npm ci
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
pnpm --filter api build
|
||||
|
||||
- name: Deploy
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
run: |
|
||||
pnpm --filter api --prod deploy ./.prod/api
|
||||
npm run build
|
||||
|
||||
- name: Log into Docker Hub
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
|
||||
44
.github/workflows/main.yaml
vendored
44
.github/workflows/main.yaml
vendored
@@ -19,17 +19,17 @@ jobs:
|
||||
version_number: ${{ github.run_id }}
|
||||
secrets: inherit
|
||||
|
||||
# deploy-api:
|
||||
# name: deploy-api
|
||||
# needs:
|
||||
# - changes
|
||||
# - build-api
|
||||
# uses: ./.github/workflows/deploy.yaml
|
||||
# with:
|
||||
# app_name: flying-api
|
||||
# environment_name: test
|
||||
# version_number: ${{ github.run_id }}
|
||||
# secrets: inherit
|
||||
deploy-api:
|
||||
name: deploy-api
|
||||
needs:
|
||||
- changes
|
||||
- build-api
|
||||
uses: ./.github/workflows/deploy.yaml
|
||||
with:
|
||||
app_name: flying-api
|
||||
environment_name: test
|
||||
version_number: ${{ github.run_id }}
|
||||
secrets: inherit
|
||||
|
||||
build-app:
|
||||
if: ${{ needs.changes.outputs.app == 'true' }}
|
||||
@@ -42,14 +42,14 @@ jobs:
|
||||
version_number: ${{ github.run_id }}
|
||||
secrets: inherit
|
||||
|
||||
# deploy-app:
|
||||
# name: deploy-app
|
||||
# needs:
|
||||
# - changes
|
||||
# - build-app
|
||||
# uses: ./.github/workflows/deploy.yaml
|
||||
# with:
|
||||
# app_name: flying-app
|
||||
# environment_name: test
|
||||
# version_number: ${{ github.run_id }}
|
||||
# secrets: inherit
|
||||
deploy-app:
|
||||
name: deploy-app
|
||||
needs:
|
||||
- changes
|
||||
- build-app
|
||||
uses: ./.github/workflows/deploy.yaml
|
||||
with:
|
||||
app_name: flying-app
|
||||
environment_name: test
|
||||
version_number: ${{ github.run_id }}
|
||||
secrets: inherit
|
||||
|
||||
Reference in New Issue
Block a user