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 diff --git a/src/app.module.ts b/src/app.module.ts index 46d2ddc..05b8dc6 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,7 @@ import { CommentModule } from './comment/comment.module'; getConfigModule(), GraphQLModule.forRoot({ driver: ApolloDriver, - autoSchemaFile: join(process.cwd(), 'dist/schema.gql') + autoSchemaFile: true }), // Load the MongoDB connection based on the config service