diff --git a/.github/workflows/wilco-actions.yml b/.github/workflows/wilco-actions.yml index 15fa886..b732c86 100644 --- a/.github/workflows/wilco-actions.yml +++ b/.github/workflows/wilco-actions.yml @@ -13,16 +13,6 @@ jobs: - name: Check out project uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v3 - with: - node-version: "16" - - - name: Start MongoDB - uses: supercharge/mongodb-github-action@1.6.0 - with: - mongodb-version: "4.4" - - uses: oNaiPs/secrets-to-env-action@v1 with: secrets: ${{ toJSON(secrets) }} diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 1b8a68e..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: "3.8" - -services: - mongo: - image: mongo:latest - container_name: mongo - ports: - - "27017:27017" - environment: - MONGO_INITDB_ROOT_USERNAME: wilco_user - MONGO_INITDB_ROOT_PASSWORD: wilco_password - - webhook: - image: mcr.microsoft.com/dotnet/aspnet:3.1 - container_name: webhook - build: - context: ./webhook - dockerfile: Dockerfile - ports: - - "5000:80" - environment: - ASPNETCORE_ENVIRONMENT: Development - FORGE_CLIENT_ID: 7WIqJXPgeiGa4fhGpG2dhQl7HdEZG8bpySJtjpOzP8DDOZfu - FORGE_CLIENT_SECRET: EIMiCRDxskNfZtpeHl9x7afLhkC07Wp2BxjzGADKeBsEGeVaSlOo3bd3pfcjZcQb - FORGE_CALLBACK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/oauth - FORGE_WEBHOOK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/webhook - OAUTH_DATABASE: mongodb://wilco_user:wilco_password@mongo:27017/webhook?authSource=admin - depends_on: - - mongo diff --git a/webhook/Dockerfile b/webhook/Dockerfile deleted file mode 100644 index 39c1d7f..0000000 --- a/webhook/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -# Use the official .NET Core SDK image to build the app -FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build -WORKDIR /app - -# Copy the csproj and restore as distinct layers -COPY *.csproj ./ -RUN dotnet restore - -# Copy the remaining files and build the app -COPY . ./ -RUN dotnet publish -c Release -o out - -# Use the official ASP.NET Core runtime image to run the app -FROM mcr.microsoft.com/dotnet/aspnet:3.1 -WORKDIR /app -COPY --from=build /app/out . -ENTRYPOINT ["dotnet", "webhook.dll"] \ No newline at end of file