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

View File

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