Add .onedev-buildspec.yml
This commit is contained in:
parent
a91ac1d1b4
commit
f95c9e50c2
|
|
@ -0,0 +1,43 @@
|
||||||
|
version: 40
|
||||||
|
jobs:
|
||||||
|
- name: Deploy app
|
||||||
|
steps:
|
||||||
|
- !CheckoutStep
|
||||||
|
name: Checkout
|
||||||
|
cloneCredential: !DefaultCredential {}
|
||||||
|
withLfs: false
|
||||||
|
withSubmodules: false
|
||||||
|
condition: SUCCESSFUL
|
||||||
|
optional: false
|
||||||
|
- !CommandStep
|
||||||
|
name: Copy repo
|
||||||
|
runInContainer: false
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
rsync -av --delete --exclude="node_modules" --exclude=".git" ./ /www/wwwroot/moviebox/
|
||||||
|
useTTY: true
|
||||||
|
condition: SUCCESSFUL
|
||||||
|
optional: false
|
||||||
|
- !CommandStep
|
||||||
|
name: Install deps
|
||||||
|
runInContainer: false
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
cd /www/wwwroot/moviebox
|
||||||
|
npm install
|
||||||
|
useTTY: true
|
||||||
|
condition: SUCCESSFUL
|
||||||
|
optional: false
|
||||||
|
- !CommandStep
|
||||||
|
name: Run App
|
||||||
|
runInContainer: false
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
bash /www/server/nodejs/vhost/scripts/moviebox.sh
|
||||||
|
useTTY: true
|
||||||
|
condition: SUCCESSFUL
|
||||||
|
optional: false
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
|
timeout: 14400
|
||||||
Loading…
Reference in New Issue