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
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: yarn build
- run:
name: Copy deployment artifacts to workspace
@ -65,7 +65,7 @@ jobs:
root: /tmp
paths:
- server
- save_cache:
paths:
- node_modules
@ -74,7 +74,7 @@ jobs:
deploy:
docker:
- image: circleci/node:dubnium-browsers
working_directory: ~/repo
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
@ -85,8 +85,8 @@ jobs:
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- 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:
working_directory: /dockerapp
docker:
@ -115,8 +115,8 @@ workflows:
requires:
- install
- deploy:
requires:
requires:NETLIFY_AUTH_TOKEN
- build
- docker-build-and-push:
requires:
- build
- build
Loading…
Cancel
Save