diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e63a85..2d2287c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,9 +11,13 @@ workflows: requires: - yarn - e2e-test: + requires: + - yarn + - build: requires: - lint - test + - e2e-test jobs: yarn: @@ -83,3 +87,15 @@ jobs: key: npm-v2-dependencies-{{ checksum "yarn.lock" }} paths: - ./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 . \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index da8a07e..87b0d73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:latest +FROM node:12.18.4 COPY package.json ./ COPY yarn.lock ./