new deployment

This commit is contained in:
cupcakearmy 2020-01-16 00:51:23 +01:00
parent 193f7aaf1f
commit 70b70f2d09
2 changed files with 17 additions and 11 deletions

View File

@ -2,14 +2,14 @@ kind: pipeline
name: default
steps:
- name: build
image: node:alpine
pull: always
commands:
- node -v
- yarn -v
- yarn
- yarn run build
# - name: build
# image: node:alpine
# pull: always
# commands:
# - node -v
# - yarn -v
# - yarn
# - yarn run build
- name: deploy
image: cupcakearmy/drone-deploy
@ -27,8 +27,13 @@ steps:
- ./docker-compose.prod.yml
- ./yarn.lock
- ./package.json
- ./tsconfig.json
- ./next.config.js
- ./.next
- ./components
- ./pages
- ./public
- ./screens
- ./styles
commands:
- docker-compose -f docker-compose.prod.yml up -d --build
when:

View File

@ -6,7 +6,8 @@ COPY package.json .
COPY yarn.lock .
RUN yarn
COPY next.config.js .
COPY .env .
COPY . ./
RUN yarn run build
CMD [ "yarn", "run", "start" ]