Browse Source

add netlify config

main
hallouma875 6 years ago
parent
commit
0f45488f21
  1. 20
      .circleci/config.yml

20
.circleci/config.yml

@ -41,19 +41,19 @@ jobs:
# CircleCI maintains a library of pre-built images # CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/ # documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4 # - image: circleci/mongo:3.4.4
working_directory: ~/repo working_directory: ~/repo
steps: steps:
- checkout - checkout
# Download and cache dependencies # Download and cache dependencies
- restore_cache: - restore_cache:
keys: keys:
- v1-dependencies-{{ checksum "package.json" }} - v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- v1-dependencies- - v1-dependencies-
- run: yarn build - run: yarn build
- run: - run:
name: Copy deployment artifacts to workspace name: Copy deployment artifacts to workspace
@ -65,7 +65,7 @@ jobs:
root: /tmp root: /tmp
paths: paths:
- server - server
- save_cache: - save_cache:
paths: paths:
- node_modules - node_modules
@ -74,7 +74,7 @@ jobs:
deploy: deploy:
docker: docker:
- image: circleci/node:dubnium-browsers - image: circleci/node:dubnium-browsers
working_directory: ~/repo
working_directory: ~/repo
steps: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
@ -85,8 +85,8 @@ jobs:
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- v1-dependencies- - v1-dependencies-
- run: - run:
name: Deploy app
command: npx netlify-cli deploy --auth $NETLIFY_AUTH_TOKEN --site $NETLIFY_SITE_ID --dir /tmp/server --prod
name: Deploy app
command: npx netlify-cli deploy --auth 89YPDHDE8I7iR85BiDqtthOwpbsaJzzeQwKJdgUtBFY --site 4d88c2a3-5589-4014-982e-11d955198d7a --dir /tmp/server --prod
docker-build-and-push: docker-build-and-push:
working_directory: /dockerapp working_directory: /dockerapp
docker: docker:
@ -115,8 +115,8 @@ workflows:
requires: requires:
- install - install
- deploy: - deploy:
requires:
requires:NETLIFY_AUTH_TOKEN
- build - build
- docker-build-and-push: - docker-build-and-push:
requires: requires:
- build
- build
Loading…
Cancel
Save