mirror of
https://github.com/cupcakearmy/old.nicco.io.git
synced 2024-11-01 00:24:16 +01:00
deployment
This commit is contained in:
parent
e4aa29ad9c
commit
09ace19405
42
.drone.yml
42
.drone.yml
@ -2,9 +2,9 @@ kind: pipeline
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:11-alpine
|
image: node:11-alpine
|
||||||
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- node -v
|
- node -v
|
||||||
- npm -v
|
- npm -v
|
||||||
@ -12,23 +12,23 @@ steps:
|
|||||||
- npm run build:prod
|
- npm run build:prod
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: cupcakearmy/drone-deploy
|
image: cupcakearmy/drone-deploy
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_KEY:
|
PLUGIN_KEY:
|
||||||
from_secret: ssh_key
|
from_secret: ssh_key
|
||||||
settings:
|
settings:
|
||||||
host: nicco.io
|
host: nicco.io
|
||||||
user: root
|
user: root
|
||||||
port: 1312
|
port: 1312
|
||||||
target: /srv/web/home
|
target: /srv/web/home
|
||||||
sources:
|
sources:
|
||||||
- ./public
|
- ./public
|
||||||
- ./docker-compose.yml
|
- ./docker-compose.yml
|
||||||
- ./docker-compose.prod.yml
|
- ./docker-compose.prod.yml
|
||||||
commands:
|
commands:
|
||||||
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml down
|
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml down
|
||||||
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
Loading…
Reference in New Issue
Block a user