You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
970 B
39 lines
970 B
version: 2.1
|
|
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/node:dubnium-browsers
|
|
steps:
|
|
- checkout
|
|
- restore_cache:
|
|
keys:
|
|
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
|
|
- dependencies-
|
|
- run: npm install
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
|
|
build_docker:
|
|
environment:
|
|
IMAGE_NAME: sgttabouret/devops-final-front
|
|
docker:
|
|
- image: circleci/buildpack-deps:stretch
|
|
steps:
|
|
- checkout
|
|
- setup_remote_docker
|
|
- run: docker image build --tag $IMAGE_NAME:app .
|
|
- run: docker save -o image.tar $IMAGE_NAME
|
|
- persist_to_workspace:
|
|
root: .
|
|
paths:
|
|
- ./image.tar
|
|
|
|
workflows:
|
|
build_deploy_netlify:
|
|
jobs:
|
|
- build
|
|
- build_docker:
|
|
requires:
|
|
- build
|