Edit .onedev-buildspec.yml

This commit is contained in:
ronger 2022-09-18 12:43:42 +00:00
parent 6b7d573ba1
commit f17a8dc327

View File

@ -18,8 +18,7 @@ jobs:
image: node:16.17.0-alpine image: node:16.17.0-alpine
interpreter: !DefaultInterpreter interpreter: !DefaultInterpreter
commands: commands:
- yarn --registry=https://registry.npm.taobao.org - docker build -t nebula:latest .
- npx nuxt build
useTTY: false useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
triggers: triggers:
@ -33,18 +32,3 @@ jobs:
- key: npm-cache - key: npm-cache
path: /root/.npm path: /root/.npm
timeout: 3600 timeout: 3600
- name: Build Docker Image
jobExecutor: internal
steps:
- !BuildImageStep
name: Build Docker Image
dockerfile: .
tags: rymcu/nebula:latest
publish: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
retryCondition: never
maxRetries: 3
retryDelay: 30
cpuRequirement: 250
memoryRequirement: 256
timeout: 3600