From 27e95915ac8cc1dbc7837f251760855043055fab Mon Sep 17 00:00:00 2001 From: cbolles Date: Fri, 21 Jun 2024 09:55:53 -0400 Subject: [PATCH 1/3] Remove saving of schema file --- src/app.module.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 46d2ddc..827ffe6 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -6,7 +6,6 @@ import { ConfigModule, ConfigService } from '@nestjs/config'; import config from './config'; import { GraphQLModule } from '@nestjs/graphql'; import { ApolloDriver, ApolloDriverConfig } from '@nestjs/apollo'; -import { join } from 'path'; import { DampLabServicesModule } from './services/damplab-services.module'; import { MongooseModule } from '@nestjs/mongoose'; import { WorkflowModule } from './workflow/workflow.module'; @@ -22,7 +21,6 @@ import { CommentModule } from './comment/comment.module'; getConfigModule(), GraphQLModule.forRoot({ driver: ApolloDriver, - autoSchemaFile: join(process.cwd(), 'dist/schema.gql') }), // Load the MongoDB connection based on the config service From 63dde620ab2f58dcf5c49820113cbd41e46676e8 Mon Sep 17 00:00:00 2001 From: cbolles Date: Fri, 21 Jun 2024 10:10:06 -0400 Subject: [PATCH 2/3] Remove need to store schema in a file --- src/app.module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.module.ts b/src/app.module.ts index 827ffe6..05b8dc6 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -21,6 +21,7 @@ import { CommentModule } from './comment/comment.module'; getConfigModule(), GraphQLModule.forRoot({ driver: ApolloDriver, + autoSchemaFile: true }), // Load the MongoDB connection based on the config service From 9385f13a585f8ec95a56406089c35704437c2771 Mon Sep 17 00:00:00 2001 From: cbolles Date: Fri, 21 Jun 2024 10:30:18 -0400 Subject: [PATCH 3/3] Remove outdated github actions --- .github/workflows/on-push-main.yaml | 35 ----------------------------- .github/workflows/on-release.yaml | 28 ----------------------- 2 files changed, 63 deletions(-) delete mode 100644 .github/workflows/on-push-main.yaml delete mode 100644 .github/workflows/on-release.yaml diff --git a/.github/workflows/on-push-main.yaml b/.github/workflows/on-push-main.yaml deleted file mode 100644 index 6b89c9e..0000000 --- a/.github/workflows/on-push-main.yaml +++ /dev/null @@ -1,35 +0,0 @@ -name: Handle Push to Main - -on: - push: - branches: [ main ] - -jobs: - docker: - runs-on: ubuntu-latest - name: Build And Push to Docker Hub - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - push: true - tags: hicsail/damplab-backend:unstable - - - name: Push to Staging - uses: fjogeleit/http-request-action@v1 - with: - method: 'POST' - url: ${{ secrets.PORTAINER_WEBHOOK }} - preventFailureOnNoResponse: true diff --git a/.github/workflows/on-release.yaml b/.github/workflows/on-release.yaml deleted file mode 100644 index 857abd1..0000000 --- a/.github/workflows/on-release.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Release Actions - -on: - release: - types: [ published ] - -jobs: - docker: - runs-on: ubuntu-latest - name: Build And Push to Docker Hub - steps: - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v3 - with: - push: true - tags: hicsail/damplab-backend:${{github.ref_name}},hicsail/damplab-backend:latest