Browse Source

workflow

main
spokequenouille 6 years ago
parent
commit
d313357e68
  1. 24
      .circleci/config.yml

24
.circleci/config.yml

@ -2,7 +2,7 @@
version: 2.1 version: 2.1
workflows: workflows:
version: 2.1
version: 2
build_docker: build_docker:
jobs: jobs:
- deploy_node - deploy_node
@ -14,23 +14,21 @@ jobs:
environment: environment:
DATABASEURL: postgres://psqluser:psqlpassword@localhost:5432/psdb DATABASEURL: postgres://psqluser:psqlpassword@localhost:5432/psdb
JWT_SECRET: secret JWT_SECRET: secret
API_PORT: 3000
API_PORT: '3000'
API_HOST: localhost API_HOST: localhost
API_PROTOCOL: http API_PROTOCOL: http
auth:
username: mydockerhub-user
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
auth:
username: mydockerhub-user
password: $DOCKERHUB_PASSWORD" # context / project UI env-var reference
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: yarn-packages-{{checksum "yarn.lock"}}
key: yarn-packages-{{checksum "yarn.lock"}}
- run: - run:
name: install node
command: yarn global add node-gyp && yarn install
name: install node
command: yarn global add node-gyp && yarn install
- save_cache: - save_cache:
key: yarn-packages-{{checksum "yarn.lock"}}
paths:
- ./node_module
key: yarn-packages-{{checksum "yarn.lock"}}
paths:
- ./node_module
Loading…
Cancel
Save