mirror of
https://github.com/cupcakearmy/fantus.git
synced 2024-11-01 04:54:13 +01:00
new deployment
This commit is contained in:
parent
193f7aaf1f
commit
70b70f2d09
23
.drone.yml
23
.drone.yml
@ -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:
|
||||||
|
@ -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" ]
|
Loading…
Reference in New Issue
Block a user