Added test project requiring mongodb and added new workflow to test Gitea Actions - Service Containers

This commit is contained in:
2023-07-17 16:39:34 +02:00
parent e833c393fb
commit 5c635fd321
12 changed files with 1650 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM node:16
ENV MONGODB_CONNECTION_PROTOCOL mongodb+srv
ENV MONGODB_DB_NAME gha-demo1
ENV MONGODB_CLUSTER_ADDRESS cluster0.ntrwp.mongodb.net
ENV MONGODB_USERNAME maximilian
ENV MONGODB_PASSWORD eI3R3UfNlJgWJe17
WORKDIR /app
COPY package*.json .
RUN npm install
COPY . .
CMD ["npm", "start"]