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
|
||||
|
||||
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:
|
||||
|
@ -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" ]
|
Loading…
Reference in New Issue
Block a user