Files
PictureStory-v2/.circleci/config.yml

54 lines
1.3 KiB
YAML

version: 2
jobs:
build:
docker:
- image: circleci/node:13.0.1-stretch-browsers
steps:
- checkout
- run:
name: Setup Machine
command: |
# Install system dependencies
sudo apt-get update
sudo npm install -g npm
# Install node dependencies
npm install
- run: npm run build
upload:
docker:
- image: circleci/node:13.0.1-stretch-browsers
steps:
- checkout
- run:
name: Setup Machine
command: |
# Install system dependencies
sudo apt-get update
sudo npm install -g npm
# Install node dependencies
npm install
- run: npm run build -- --message "build ${CIRCLE_BUILD_NUM}
on ${CIRCLE_BRANCH} (${CIRCLE_SHA1})"
deploy:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run:
name: Deploy Master to Heroku
command: |
git push https://heroku:a478c20f-0249-4285-9d06-edba5b011a28@git.heroku.com/picturestory-v2.git development
workflows:
version: 2
build_and_upload:
jobs:
- build
- upload:
requires:
- build
filters:
branches:
only:
- development
- master