Skip to content

Commit de439db

Browse files
author
mace
authored
Merge pull request #111 from NodeFactoryIo/mpetrunic/remove-ci-deploy
remove deploy workflow from ci
2 parents 37a87b0 + e7dbc71 commit de439db

File tree

2 files changed

+4
-27
lines changed

2 files changed

+4
-27
lines changed

.circleci/config.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,8 @@ jobs:
5959
root: ./
6060
paths:
6161
- ./image.tar
62-
deploy:
63-
working_directory: ~/app
64-
machine:
65-
image: circleci/classic:latest
66-
steps:
67-
- checkout
68-
- attach_workspace:
69-
at: ./
70-
- run:
71-
name: Load Docker images
72-
command: |
73-
set +o pipefail
74-
docker load -i ./image.tar || true
75-
- run:
76-
name: Build production image
77-
command: docker build -t final -f Dockerfile.production .
7862
workflows:
7963
version: 2
8064
build-deploy:
8165
jobs:
82-
- build
83-
- deploy:
84-
requires:
85-
- build
86-
filters:
87-
branches:
88-
only:
89-
- master
66+
- build

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ FROM node:12.13-alpine as production
2020

2121
WORKDIR /app
2222

23-
COPY --from=0 /usr/app/dist/src /app
24-
COPY --from=0 /usr/app/package.json /app/
25-
COPY --from=0 /usr/app/yarn.lock /app/
23+
COPY --from=dev /usr/app/dist/src /app
24+
COPY --from=dev /usr/app/package.json /app/
25+
COPY --from=dev /usr/app/yarn.lock /app/
2626

2727
RUN yarn install --frozen-lockfile --production && yarn cache clean
2828

0 commit comments

Comments
 (0)