diff --git a/.circleci/config.yml b/.circleci/config.yml index 5673314..6d3e851 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -64,46 +64,13 @@ workflows: version: 2 build-test-and-lint: jobs: - - build - - lint: - requires : - - build - - back-test-unit: - requires: - - build - - back-test-e2e: - requires: - - build - - back-deploy-heroku: + - install + - build: requires: - - build - - lint - - back-test-unit - - back-test-e2e - filters: - branches: - only: main - - server-doc-build: + - install + - front-netlify-deploy: requires: - build - - lint - - back-test-e2e - - back-test-unit - filters: - branches: - only: main - - server-doc-deploy: - requires: - - server-doc-build - filters: - branches: - only: main - docker-build-and-push: requires: - - build - - lint - - back-test-e2e - - back-test-unit - filters: - branches: - only: main \ No newline at end of file + - build \ No newline at end of file diff --git a/.gitignore b/.gitignore index b2be972..363d805 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ dist-ssr .idea .env .env* + +# Local Netlify folder +.netlify diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f029293 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM node:lts-fermium as development + +WORKDIR /nest-server + +COPY package*.json ./ + +RUN yarn install --only=development + +COPY . . + +RUN yarn run build + +FROM node:lts-fermium as production + +ARG NODE_ENV=production +ENV NODE_ENV=${NODE_ENV} + +WORKDIR /nest-server + +COPY package*.json ./ + +RUN yarn install --only=production + +COPY . . + +COPY --from=development /nest-server/dist ./dist + +CMD ["node", "dist/main"] \ No newline at end of file diff --git a/README.md b/README.md index 8dcd72e..de4850a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,5 @@ yarn build ## Configure the app ```sh -# Replace this with the app url -VITE_BACKEND_URL_URL=http://localhost:3000/ +VITE_BACKEND_URL_URL=https://adechauveron-devops-final.herokuapp.com/ ``` diff --git a/.circleci/netlify.toml b/netlify.toml similarity index 100% rename from .circleci/netlify.toml rename to netlify.toml