Browse Source

: add build on CI

main
Jean-François GAUTREAU 6 years ago
parent
commit
4caa311ae5
  1. 16
      .circleci/config.yml
  2. 2
      Dockerfile

16
.circleci/config.yml

@ -11,9 +11,13 @@ workflows:
requires: requires:
- yarn - yarn
- e2e-test: - e2e-test:
requires:
- yarn
- build:
requires: requires:
- lint - lint
- test - test
- e2e-test
jobs: jobs:
yarn: yarn:
@ -83,3 +87,15 @@ jobs:
key: npm-v2-dependencies-{{ checksum "yarn.lock" }} key: npm-v2-dependencies-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
build:
environment:
IMAGE_NAME: jeffyshewan/build-on-ci
docker:
- image: "circleci/buildpack-deps:stretch"
steps:
- checkout
- setup_remote_docker
- run:
name: Build and publish on DockerHub
command: docker build -t $IMAGE_NAME:latest .

2
Dockerfile

@ -1,4 +1,4 @@
FROM node:latest
FROM node:12.18.4
COPY package.json ./ COPY package.json ./
COPY yarn.lock ./ COPY yarn.lock ./

Loading…
Cancel
Save