Edit .onedev-buildspec.yml
This commit is contained in:
parent
97e27fb706
commit
a6b97dc51d
@ -1,20 +1,35 @@
|
|||||||
version: 18
|
version: 18
|
||||||
jobs:
|
jobs:
|
||||||
- name: Build Docker Image
|
- name: vue ci
|
||||||
jobExecutor: internal
|
|
||||||
steps:
|
steps:
|
||||||
- !BuildImageStep
|
- !CheckoutStep
|
||||||
name: Build Docker Image
|
name: checkout
|
||||||
dockerfile: '@project_name@/Dockerfile'
|
cloneCredential: !DefaultCredential {}
|
||||||
tags: rymcu/nebula:latest
|
withLfs: false
|
||||||
publish: false
|
withSubmodules: false
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !SetBuildVersionStep
|
||||||
|
name: set build version
|
||||||
|
buildVersion: '@script:builtin:node:determine-project-version@'
|
||||||
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
|
- !CommandStep
|
||||||
|
name: build & test
|
||||||
|
runInContainer: true
|
||||||
|
image: node:16.17.0-alpine
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npx nuxt build
|
||||||
|
useTTY: false
|
||||||
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
|
||||||
triggers:
|
triggers:
|
||||||
- !TagCreateTrigger
|
- !BranchUpdateTrigger {}
|
||||||
projects: nebula
|
|
||||||
retryCondition: never
|
retryCondition: never
|
||||||
maxRetries: 3
|
maxRetries: 3
|
||||||
retryDelay: 30
|
retryDelay: 30
|
||||||
cpuRequirement: 250
|
cpuRequirement: 250
|
||||||
memoryRequirement: 256
|
memoryRequirement: 256
|
||||||
|
caches:
|
||||||
|
- key: npm-cache
|
||||||
|
path: /root/.npm
|
||||||
timeout: 3600
|
timeout: 3600
|
||||||
|
Loading…
Reference in New Issue
Block a user